Extend deplyoment documentation

This commit is contained in:
Jonas Lochmann 2020-08-10 02:00:00 +02:00
parent 477e2f3bd3
commit 15b576a2d7
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
2 changed files with 16 additions and 4 deletions

View file

@ -10,6 +10,9 @@ within the root directory of this git repository) or you can replace it by
``image: docker.timelimit.io/timelimit-server`` which will use prebuilt docker ``image: docker.timelimit.io/timelimit-server`` which will use prebuilt docker
images. images.
In case of self building the image, don't forget to run ``docker-compose up`` again
to make docker use the new image.
## example docker-compose.yml with included database ## example docker-compose.yml with included database
``` ```

View file

@ -4,15 +4,24 @@ This requires that you've installed Node.JS and NPM.
You need this for the development, but you don't need it You need this for the development, but you don't need it
when deploying using Docker. when deploying using Docker.
## npm start ## Warning
This runs all pending migrations and starts the server. You have to run ``npm install`` and ``npm run build`` and restart the server again
after running ``git pull``. otherwise you will keep using the old version.
## npm install
This install all dependencies.
## npm run build ## npm run build
This "compiles" the application. This "compiles" the application.
## npm start
This runs all pending migrations and starts the server.
## npm run lint:fix ## npm run lint:fix
This fixes the causes of lint warnings (where possible). This fixes the causes of lint warnings (where possible). This is only needed
during the development.