Skip to content

Instantly share code, notes, and snippets.

@newswim
Created December 2, 2015 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newswim/175406078a9ae6c123b8 to your computer and use it in GitHub Desktop.
Save newswim/175406078a9ae6c123b8 to your computer and use it in GitHub Desktop.
distelli manifest for meteor
### Taken from these two sources :
######## https://www.distelli.com/docs/tutorials/deploying-meteor-applications
######## https://github.com/aldeed/deploymeteor
fracknews/FrackNews:
#Learn about the distelli-manifest.yml at https://www.distelli.com/docs/reference/distelli-manifest
PkgInclude:
- '*'
Build:
- echo "Begin Build"
# - npm install
PreInstall:
- echo "Begin PreInstall"
- sudo apt-get -y update
#Install MongoDB
- sudo apt-get install -y mongodb-server
#Install Node.js v0.10.40
- sudo apt-get -y install build-essential libssl-dev git curl
- cd /tmp
- wget http://nodejs.org/dist/v0.10.40/node-v0.10.40-linux-x64.tar.gz
- tar xvzf node-v0.10.40-linux-x64.tar.gz
- sudo rm -rf /opt/nodejs
- sudo mv node-v0.10.40-linux-x64 /opt/nodejs
- sudo ln -sf /opt/nodejs/bin/node /usr/bin/node
- sudo ln -sf /opt/nodejs/bin/npm /usr/bin/npm
- sudo apt-get install -y software-properties-common
- sudo apt-get install -y python-software-properties python g++ make
#Install Meteor
- 'if [ -a /usr/local/bin/meteor ]; then'
- echo "Meteor is already installed"
- else
- sudo curl https://install.meteor.com | /bin/sh
- fi
PostInstall:
- echo "Begin PostInstall"
#Build Meteor App
- /usr/local/bin/meteor build ./build --directory
- cd build/bundle/programs/server/
- npm install
Exec:
- export PORT=3000
- export MONGO_URL=mongodb://localhost:27017
- export ROOT_URL=https://
- /usr/bin/node build/bundle/main.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment