Question

How to Change Rails Env on Unicorn?

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”?

Subscribe
Share

Submit an 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