Report this

What is the reason for this report?

Rails in production precompile

Posted on June 9, 2015
hax

By hax

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!



This textbox defaults to using Markdown to format your 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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.