Ruby on Rails Monday, October 13, 2014


You tell us, how do you normally deploy your app?

Most non-Heroku setups use a capistrano-based  based deployment strategy, usually this involves having a folder called "releases" with subfolders timestamped for each deploy. Typically, they check out the latest code into a new folder, run the asset compilation, change the symlink of the current app to be the latest version, and then restart the application (among other things). 

But you need to ask the person who set up your deployment script in the first place how it was done. We can't tell you without knowing how it was setup in the first place.

-Jason



On Oct 13, 2014, at 11:47 AM, Hans <Hans.Marmolin@klockholm.se> wrote:

I have an application (rails 3.2, ruby 1.9) in production
I just want to change one file in the application and I am not deploying the whole application

What do I have to do ?
If it is e.g a controller file do I just have to change the file and restart the application ?
it it is e.eg an assets file e.g a css file do I also have to preompile assets again  and then restart the application?

or

Do I have run bundle install ?
Do I have to empty the old cash with assets ?
I cannot find any description of how to just change a file in a running production ?
Anything more ?

----

Jason Fleetwood-Boldt

All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email jason@datatravels.com with questions/concerns about this.

No comments:

Post a Comment