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
| FROM node:13.10.1 as builder | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | |
| COPY package.json \ | |
| package-lock.json \ | |
| tsconfig.json \ | |
| /usr/src/app/ | |
| COPY src \ | |
| /usr/src/app/src |
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
| npm install --save-dev babel-cli | |
| npm install --save-dev babel-preset-es2015 | |
| node_modules/babel-cli/bin/babel.js server.js --out-file server-compiled.js --presets es2015 |
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
| var digits = '0123456789abcdef'; var pwd = ''; _(32).times(function() { pwd += digits.charAt(Math.floor(Math.random() * 16)); }); pwd; |
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
| { | |
| "servers": [ | |
| { | |
| "host": "gavinminami.com", | |
| "username": "ubuntu", | |
| "pem": "~/.ssh/gavin-meteor.pem" | |
| } | |
| ], | |
| "setupMongo": true, | |
| "setupNode": true, |
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
| sudo apt-get update;sudo apt-get -y install awscli;sudo apt-get -y install ruby2.0 | |
| ## configure awscli | |
| aws configure | |
| sudo aws s3 cp s3://aws-codedeploy-us-west-2/latest/install . --region us-west-2;sudo chmod +x ./install;sudo ./install auto | |
| sudo service codedeploy-agent status |
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
| # install awscli | |
| sudo pip install awscli | |
| # deploy app to codedeploy | |
| cd <root of bundle> | |
| aws deploy push --application-name=nano-ide-app --s3-location=s3://eventstack-nano-builds/eventstack-ide-build.zip --source=. |