Created
January 23, 2014 01:30
-
-
Save dongri/8571116 to your computer and use it in GitHub Desktop.
.ebextensions
This file contains 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
010_packages.config | |
packages: | |
yum: | |
gcc: [] | |
make: [] | |
openssl-devel: [] | |
libxml2: [] | |
libxml2-devel: [] | |
git: [] | |
ImageMagick: [] | |
020_environment.config | |
option_settings: | |
- option_name: NODE_ENV | |
value: production | |
- option_name: NPM_CONFIG_LOGLEVEL | |
value: error | |
030_fixNpm.config | |
commands: | |
000_fixNpmHome: | |
command: sed -i 's/function error_exit/export HOME=\/root\n\nfunction error_exit/' /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh | |
010_fixNpmProduction: | |
command: sed -i "s/'install'/'install', '--production'/" /opt/elasticbeanstalk/containerfiles/ebnode.py | |
040_nginx.config | |
files: | |
"/etc/nginx/conf.d/upload.conf" : | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
client_max_body_size 20M; | |
045_compileServer.config | |
container_commands: | |
000_gruntCompileServer: | |
command: HOME=/root /opt/elasticbeanstalk/node-install/node-v0.10.10-linux-x64/bin/node node_modules/grunt-cli/bin/grunt compile:server > /var/log/gruntCompileServer.log | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment