Skip to content

Instantly share code, notes, and snippets.

@jlcampana
Last active August 31, 2015 08:32
Show Gist options
  • Save jlcampana/e1cf3e8f863a6203e67b to your computer and use it in GitHub Desktop.
Save jlcampana/e1cf3e8f863a6203e67b to your computer and use it in GitHub Desktop.
scripts4ZMServer
alias zmserver='ssh [email protected]'
alias zmtunel='ssh -L 8080:127.0.0.1:8080 [email protected]'
alias ndebug='node-debug --no-debug-brk'
export PATH=/usr/local/sbin:/usr/local/bin:$PATH
export LC_CTYPE=en_US.UTF-8
export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'
export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
alias ll='ls -laFhT -G'
alias zapps='cd /data/apps'
alias zmessenger='cd /data/apps/zm'
#!/bin/bash
clear
pgrep node | xargs kill
echo Please, open the following URL on your browser:
echo 'http://127.0.0.1:8080/?ws=127.0.0.1:8080&port=5858'
echo
echo Make sure to have active your ssh tunel:
echo 'ssh -L 8080:127.0.0.1:8080 [email protected]'
echo
echo Starting debug...
node-debug --cli /data/apps/messenger-backend/src/app.js
#!/bin/bash
watch tail -n 15 log.txt
#!/bin/bash
pgrep node | xargs kill
echo Run the app with node src/app.js > log.txt
node /data/apps/messenger-backend/src/app.js > log.txt
#!/bin/bash
pgrep node | xargs kill
cd /data/apps
rm -fr messenger-backend
git clone ssh://[email protected]:7999/messenger/messenger-backend.git
cd /data/apps/messenger-backend
npm install
cp ~/config.zm.json ./src/config/config.json
echo Run the app with:
echo node /data/apps/messenger-backend/src/app.js
@jlcampana
Copy link
Author

runZMServer.sh ejecutarlo con: ./runZMServer.sh &

@jlcampana
Copy link
Author

Cambiar XXXX por el username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment