Skip to content

Instantly share code, notes, and snippets.

@timclipsham
Created July 3, 2013 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timclipsham/5917769 to your computer and use it in GitHub Desktop.
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.
container_commands:
passenger-config:
command: "/bin/bash .ebextensions/spawn-method-conservative.sh"
#!/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