Nginx Configuration
Nginx comes pre-configured and running on your Rails Boxcar.
You’ll want to make sure that you have at least already created a database user and the appropriate database for your application. If you are using our automated tools the database name should be “yourappname_production”.
Beyond this, you can automate most of the rest of the tasks. The recommended approach is the following:
- Log in as root, and run
activate-nginx. When prompted for your deployment username enter the username you would like to use. For simplicity’s sake, this should be the same name (and same password) as your svn/git/etc user. You’ll be prompted to create the user. Answer Y, and proceed. - After the user is created the app will tell you you need to deploy. At this point you should install our boxcar-conductor plugin and follow the directions to get your application deployed.
- After everything is all deployed, return to your root login and run
activate-nginxagain. Your username will have been saved from before. Just provide your application name (the same name you provided during the deployment process), and off you go. If everything goes well nginx should be all configured for you and running without a problem.