-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdev.sh
21 lines (16 loc) · 1.28 KB
/
dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
while true
do
ssh [email protected] "ssh codepad-devel.d250.hu 'rm -fr /var/log/node-project/*'"
# ssh [email protected] "ssh codepad-devel.d250.hu 'cd /srv/highlight.js && node tools/build.js -n '"
# ssh [email protected] "ssh codepad-devel.d250.hu 'cat /srv/highlight.js/build/highlight.pack.js > /srv/node-project/etherpad-lite/node_modules/ep_codepad/static/js/highlight.codepad.js'"
# ssh [email protected] "ssh codepad-devel.d250.hu 'chown codepad:codepad /srv/node-project/etherpad-lite/node_modules/ep_codepad/static/js/highlight.codepad.js'"
# ssh [email protected] "ssh codepad-devel.d250.hu 'cd /srv/highlight.js && node tools/build.js -n && cat /srv/highlight.js/build/highlight.pack.js > /srv/node-project/etherpad-lite/node_modules/ep_codepad/static/js/highlight.codepad.js && chown codepad:codepad /srv/node-project/etherpad-lite/node_modules/ep_codepad/static/js/highlight.codepad.js'"
ssh [email protected] "ssh codepad-devel.d250.hu 'sc node-project !'"
sleep 2
firefox --private "http://codepad-devel.d250.hu/p/test.html";
# firefox --private "https://dev.codepad-test.d250.hu/p/test.html";
ssh [email protected] "ssh codepad-devel.d250.hu 'cat /var/log/node-project/err'"
ssh [email protected] "ssh codepad-devel.d250.hu 'cat /var/log/node-project/log'"
done
# codepad.d250.hu devell script - my client side