Last active
August 31, 2015 08:32
-
-
Save jlcampana/e1cf3e8f863a6203e67b to your computer and use it in GitHub Desktop.
scripts4ZMServer
This file contains hidden or 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
alias zmserver='ssh [email protected]' | |
alias zmtunel='ssh -L 8080:127.0.0.1:8080 [email protected]' | |
alias ndebug='node-debug --no-debug-brk' |
This file contains hidden or 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
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' |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/bin/bash | |
watch tail -n 15 log.txt |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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 |
Cambiar XXXX por el username
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
runZMServer.sh ejecutarlo con:
./runZMServer.sh &