aboutsummaryrefslogtreecommitdiffstats
path: root/moon_gui/run.sh
blob: 94bc8360f54213a859c270fd92c83d7bb0561339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

service apache2 start

sed "s/{{MANAGER_HOST}}/$MANAGER_HOST/g" -i /root/static/app/moon.constants.js
sed "s/{{MANAGER_PORT}}/$MANAGER_PORT/g" -i /root/static/app/moon.constants.js
sed "s/{{KEYSTONE_HOST}}/$KEYSTONE_HOST/g" -i /root/static/app/moon.constants.js
sed "s/{{KEYSTONE_PORT}}/$KEYSTONE_PORT/g" -i /root/static/app/moon.constants.js

echo "--------------------------"
cat /root/static/app/moon.constants.js
echo "--------------------------"

gulp delivery
cp -rv /root/delivery/* /var/www/html

tail -f /var/log/apache2/error.log