- This is the source code of hanzluo.com
- CD into app directory if not already in it
$ cd ~/web/hanzluo`
- Pull the latest version.
git pull
is not inside./deploy.sh
because./deploy.sh
itself may be changed
$ git pull
- Run deploy scripts
$ ./deploy.sh
- CD into app directory if not already in it
$ cd ~/web/hanzluo`
- Pull the latest version.
git pull
is not inside./deploy-update.sh
because./deploy-update.sh
itself may be changed
$ git pull
- Run update deploy scripts. If
settings.js
is modified, manual update inside container is needed
$ ./deploy-update.sh
Create external MongoDB volume
$ docker volume create --name=mongo_volume
Docker volume doc: https://docs.docker.com/storage/volumes/