Skip to content

Instantly share code, notes, and snippets.

View theworkflow's full-sized avatar

Jeremiah Harlan theworkflow

View GitHub Profile
@theworkflow
theworkflow / s3_access.json
Created February 23, 2016 17:45
S3 Mongo Access Policy
{
"Version":"2012-10-17",
"Statement": [
{
"Sid": "AllowUserToSeeBucketListInTheConsole",
"Action": ["s3:ListAllMyBuckets", "s3:GetBucketLocation"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::*"]
},
{
@theworkflow
theworkflow / upload.sh
Last active August 12, 2016 20:15
Deploy Meteor 1.4 on Modulus with Node@v4
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
@theworkflow
theworkflow / Deploy Meteor App To Modulus
Last active August 17, 2016 15:15
Manual Deployment of Meteor to Modulus
$ # 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
@theworkflow
theworkflow / mongo_host_preinstall.sh
Last active June 20, 2017 21:23
Mongo database host AMI setup
#!/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