I am very new to Ruby, and was wondering how I can update the live site after editing some files (for UI purposes) directly on production.
We’re running Unicorn at the moment. The script is installed in the /root/ribbot/ribbot/ folder.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rails caches source code, view templates etc: if they change then you need to restart unicorn.
Unicorn does have a seamless restart function: send a USR2 signal to the unicorn master process: this causes a new master process to be started. When this is up and running, send QUIT to the old one. GitHub have a good blog post on how they do this