added docker stuff and updated next.js to ^7.0.0

This commit is contained in:
JJ Kasper
2018-09-21 15:17:55 -05:00
parent 2230f72160
commit 56f9ee318f
62 changed files with 16686 additions and 11907 deletions

25
docker_startup.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
if [ -d "/db" ];then
rm -rf /opt/mykb/db
ln -s /db /opt/mykb/db
fi
if [ -d "/kb" ];then
rm -rf /opt/mykb/kb
ln -s /kb /opt/mykb/kb
fi
if [ -d "/config" ];then
for i in /opt/mykb/config/*;do file=${i#/opt/mykb/config/}; if [ ! -f "/config/$file" ];then cp "$i" "/config/$file"; fi;done
rm -rf /opt/mykb/config
ln -s /config /opt/mykb/config
fi
git config --global user.email "$GIT_EMAIL"
git config --global user.name "$GIT_NAME"
cd /opt/mykb
echo $PWD
NODE_ENV=production node ./genSecret.js
yarn start