turning out config files into just examples

pull/768/head^2
Gabriel Engel 10 years ago
parent 1c0026c247
commit b5c28bdac0
  1. 25
      build.sh
  2. 0
      example-ecosystem.json
  3. 0
      example-pm2.json

@ -1,17 +1,10 @@
#!/bin/bash
if [ ! $1 ]; then
echo " Example of use: source build.sh production"
fi
if [ $1 ]; then
source ./build-info.sh
export METEOR_SETTINGS=$(cat settings.$1.json)
meteor add rocketchat:external
meteor add rocketchat:hubot
meteor build --server https://demo.rocket.chat --directory /var/www/rocket.chat
cd /var/www/rocket.chat/bundle/programs/server
npm install
cd /var/www/rocket.chat/current
pm2 startOrRestart /var/www/rocket.chat/current/pm2.$1.json
fi
source ./build-info.sh
export METEOR_SETTINGS=$(cat settings.json)
meteor add rocketchat:external
meteor add rocketchat:hubot
meteor build --server https://demo.rocket.chat --directory /var/www/rocket.chat
cd /var/www/rocket.chat/bundle/programs/server
npm install
cd /var/www/rocket.chat/current
pm2 startOrRestart /var/www/rocket.chat/current/pm2.json

Loading…
Cancel
Save