Skip to content

Instantly share code, notes, and snippets.

@nanek
Created May 20, 2015 20:46
Show Gist options
  • Save nanek/f7f8f4cfd76751e43dd1 to your computer and use it in GitHub Desktop.
Save nanek/f7f8f4cfd76751e43dd1 to your computer and use it in GitHub Desktop.
Disable npm install on ElasticBeanstalk. Only npm rebuild.
commands:
01_fixNpmInstallJustRebuild:
command: sed -i "s/check_call(\[npm_path, 'install'\], cwd=app_path, env=npm_env)/#/g" /opt/elasticbeanstalk/containerfiles/ebnode.py
02_fixNpmInstallJustRebuild:
command: sed -i "s/check_call(\[npm_path, '--production', 'install'\], cwd=app_path, env=npm_env)/#/g" /opt/elasticbeanstalk/containerfiles/ebnode.py
@joezen777
Copy link

cool. I may have to use this if I'm still alive after beating my head against a wall. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment