Report this

What is the reason for this report?

How to Change Rails Env on Unicorn?

Posted on June 25, 2015

Hello i’m new to ruby application deplloy, but when i using to learn. but when i learn rails i used Webrick locally and i could setup and use many Envs, how i do that in unicorn? how can i have online application running in a version when i chage, upgrade and test my application without interfer in my running application?

PS: How i see the realtime log in unicorn, like the webrick when i run the “Rails s”?



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 had the same problem and after lots of hunting found the file /etc/default/unicorn - edit this and change production to whatever environment you need under UNICORN_OPTS

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.