forked from jcoppieters/cody
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
34 lines (25 loc) · 818 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
screen
cd /usr/local/src/cody
rm -rf jcms
git clone http://bitbucket.org/jcoppieters/jcms
rm -rf jcms/node_modules
npm install express
npm install [email protected]
npm install mime
npm install ejs
npm install nodemailer
npm install nodeunit -g
npm install forever -g
mysql mysql -e 'CREATE DATABASE essen DEFAULT CHARACTER SET utf8'
mysql essen < cody/cody.sql
mysql essen < essen/essen.sql
mysql mysql -e 'CREATE DATABASE codyweb DEFAULT CHARACTER SET utf8'
mysql codyweb < cody/cody.sql
mysql codyweb < codyweb/codyweb.sql
mysql mysql -e 'CREATE DATABASE empty DEFAULT CHARACTER SET utf8'
mysql empty < cody/cody.sql
mysql empty < empty/empty.sql
echo "current urls: http://localhost:3000/codyweb/nl/ & /en + /essen/nl/ & /en/ + */nl/dashboard & */en/dashboard"
cd jcms
forever start index.js
ctl-a ctl-d