Ruby on Rails Monday, October 13, 2014

There is really no deployment script

We had an application in development mode that was changed to production mode by changing the configuration file on the apache server with fusion passenger ( think?).
and by setting railsenv-variabeln to production
and by running rake task precompile assets
I would like to deploy it by uploading all files that according to their timestamps have been changed
then precompile assets  when needed 
Then What is needed ??

13 okt 2014 kl. 18:19 skrev Jason Fleetwood-Boldt <tech@datatravels.com>:


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.


--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/l3O4bKs106Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/C5D554C1-A0DE-448A-867C-3416246110D9%40datatravels.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment