fast deploy on aws

This commit is contained in:
Mario Romano
2016-07-14 14:16:22 +01:00
parent 8f44c77b47
commit ef8a46fec4
3 changed files with 101 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh" :
mode: "000775"
owner: root
group: root
content: |
#!/bin/bash
function error_exit
{
eventHelper.py --msg "$1" --severity ERROR
exit $2
}
export HOME=/home/ec2-user
echo "export home"
sudo curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -
sudo yum install -y nodejs