Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

specify an environment in rails 3 app with thin

I'm using thin to run my rails app on ec2. How do I specify that my ec2 instance is test or prod in thin? Is thin really a good choice for running rails app in production? It's not gonna be a high volume app at least at first.

like image 243
ed1t Avatar asked Feb 25 '23 17:02

ed1t


1 Answers

You can pass the desired environment to thin with either -e production on the command-line or environment: production in your YAML config-file.

like image 191
nickgrim Avatar answered Mar 08 '23 00:03

nickgrim