docker_start.sh 259 Bytes
Newer Older
priit's avatar
priit committed
1 2
#!/bin/bash

priit's avatar
priit committed
3 4 5 6 7 8
cp -R -u -p /src/config_dist.js /config/config.js

if [ -f /config/config.js ]; then
    cp /config/config.js /src/config.js
fi

priit's avatar
priit committed
9
if [ ! -f /src/config.js ]; then
priit's avatar
priit committed
10
    cp -R -u -p /src/config_dist.js /src/config.js
priit's avatar
priit committed
11 12
fi

priit's avatar
priit committed
13 14
forever start /src/app.js
top