Unicorn does not employ keep files for its configuration file. This page describes how to customize Unicorn without a keep file.
The process is:
- Create an alternate Unicorn configuration file.
- Start Unicorn with Bundler instead of running the system Unicorn.
To create the customized Unicorn configuration file and restart Unicorn
Add this line to the file
/data/_myapp_/shared/config/env.custom(where myapp is the name of your application):
This specifies an alternate configuration file for Unicorn.
Note: If you are using env_vars, then use the env_vars recipe to customize the environment variable. If you are already using the env_vars recipe, it will override your settings here. Use the recipe to customize your Unicorn settings.
/data/_myapp_/shared/config/custom_unicorn.rbwith the customizations that you want.
Restart Unicorn so that the customizations take effect:
To start Unicorn in Bundler
Add the Unicorn gem to your Gemfile:
Run these commands to update your Gemfile.lock:
git commit -a -m "Gemfile updated for Unicorn"
git push origin
If you have feedback or questions about this page, add a comment below. If you need help, submit a ticket with Engine Yard Support.