Created
July 3, 2013 13:16
-
-
Save timclipsham/5917769 to your computer and use it in GitHub Desktop.
AWS Elastic Beanstalk Passenger (standalone) configuration change to use "--spawn-method conservative".
Usage: add it to your .ebextensions directory and reference it in the container_commands section in .ebextensions/environment.config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container_commands: | |
passenger-config: | |
command: "/bin/bash .ebextensions/spawn-method-conservative.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# add "--spawn-method conservative" to passenger config if it doesn't exist | |
sed -E -i.bak '/--spawn-method conservative/! s,(passenger start .*)\\,\1--spawn-method conservative \\,g' /etc/init.d/passenger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment