Question

Rails in production precompile

Hi,

Recently I have spin up server Ubuntu, Rails … server is running well. However, in case you update rails folder under /home/rails stuff will not work any longer due to the fact services such nginx & unicorn need to be stopped, besides in rails directory ruby precompile command need to run each time update has been done. This is a bit problem for those who need updating theirs rails app, therefore I have written small script doing all at once so in case you would like to take a look at I can send you so you could eventually publish it?

Thx!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I know this is an old post, but that script sounds interesting! For anyone stumbling across this, you might want to look into using a tool like Capistrano for deploying changes to your Rails application. Among other things, it allows you write post-deployment hooks to run the various tasks needed. For more info, check out:

If you’re using the DigitalOcean One-Click app, make sure to see the accompanying tutorial for the configuration details.