Created
December 4, 2015 16:22
-
-
Save newswim/c642bd9a1cf136da73c3 to your computer and use it in GitHub Desktop.
Distelli manifest for Meteor application
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
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/local | |
- export ROOT_URL=http://fracknews.com | |
- /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