a-chernykh / railsbox

Fast and easy Ruby on Rails virtual machines
https://railsbox.io
MIT License
320 stars 52 forks source link

Vagrant reboot deletes puma pids and sockets folder from /tmp directory #55

Open ghost opened 8 years ago

ghost commented 8 years ago

While using the setup works perfectly fine on first provisioning, as soon as I do vagrant halt and start the machine again by doing vagrant up, I can't seem to get puma working. I've looked into the log files and the issue is that the pids and sockets directory from /tmp/project-name folder are missing. Actually, the whole /tmp/project-name folder is missing on subsequent boots.

Is this something that I can solve on my own?

noefroidevaux commented 8 years ago

@aniljaiswal I have the same problem. I seems related to #25 and as @arifb proposes, I use

app_temp_path: "/var/tmp{{ app_path }}"

instead of

app_temp_path: "/tmp{{ app_path }}"

in railsbox/ansible/roles/nginx/templates/nginx.conf.j2 (you need a vagrant provision after that).