Skip to content

Instantly share code, notes, and snippets.

@hpgsantos
Last active May 7, 2017 00:36
Show Gist options
  • Save hpgsantos/dc003e2b8d2313665c507c6dd58f68e5 to your computer and use it in GitHub Desktop.
Save hpgsantos/dc003e2b8d2313665c507c6dd58f68e5 to your computer and use it in GitHub Desktop.
Rocket.Chat Build With Personal Package

** About

@rckchat_pkg_build.sh @ is a simple bash shell script for compiling my personal projects with meteor and third part packages

** Installation

curl https://gist.githubusercontent.com/hpgsantos/dc003e2b8d2313665c507c6dd58f68e5/raw/a2130d0ea51ffb0b0b38497b5b477d0791a5b05e/rckchat_pkg_build.sh > rckchat_pkg_build.sh &&
chmod 755 rckchat_pkg_build.sh

** Execution

./rckchat_pkg_build.sh && cd ~/var/www/bundle

** Start Server

cd ~/var/www/bundle && node main.js

** Full Command

cd ~ && ./rckchat_pkg_build.sh && cd ~/var/www/bundle && node main.js
echo "----- Primeira Fase ----"
cd /home/henrique/Documentos/Rocket.Chat
# meteor npm install --save
sudo rm -r ~/var/www/bundle
meteor build --server-only --directory ~/var/www
echo "----- Segunda fase ----"
cd ~/var/www/bundle/programs/server
# meteor npm install --save bcrypt
meteor npm install --save
cd ../..
export ROOT_URL=https://localhost/
export MONGO_URL=mongodb://localhost:27017/rocketchat
export PORT=3000
echo "----- Pronto, just start server ----"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment