aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_gui/run.sh
blob: fc3d87a0adc78638d4ccf191c5dd65e4b53b315c (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 "--------------------------"
grep varuna /root/static/app/moon.constants.js
echo "--------------------------"

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

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