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
#!/bin/bash | |
set -e | |
DOCKER_VERSION=1.13.1-0~ubuntu-xenial | |
COMPOSE_VERSION=1.13.0 | |
NVM_VERSION=0.33.2 | |
NODE_LTS=boron | |
MONGO_RS_VERSION=0.2.0 | |
# Install utilities and dependencies |
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
$ # Steps if deploying Meteor 1.3 or below | |
$ | |
$ nvm install 0.10 (if not already installed) | |
$ npm i -g modulus | |
$ npm i -g demeteorizer@3 # Version 4 compatible with node@4 and above | |
$ cd /root/directory/of/project | |
$ npm install | |
$ demeteorizer --server-only --architecture os.linux.x86_64 | |
$ mv ./node_modules ./.demeteorized/bundle/programs/server | |
$ cd .demeteorized |
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
npm i -g demeteorizer | |
npm i -g modulus | |
cd /to/app/dir | |
demeteorizer --server-only --node-version 4.4.7 --architecture os.linux.x86_64 | |
npm install --production # only if you have a package.json in the root of your project | |
mv ./node_modules ./.demeteorized/bundle/programs/server # only if you have a package.json in the root of your project | |
cd .demeteorized/bundle | |
modulus deploy --include-modules |
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
{ | |
"Version":"2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowUserToSeeBucketListInTheConsole", | |
"Action": ["s3:ListAllMyBuckets", "s3:GetBucketLocation"], | |
"Effect": "Allow", | |
"Resource": ["arn:aws:s3:::*"] | |
}, | |
{ |