Lastly, let's go into our remote server and deploy our documentation site. We do this by pulling in our changes and installing the dependencies.
$ ssh hobnob@142.93.241.63hobnob@hobnob:$ cd projects/hobnob/hobnob@hobnob:$ git fetch --allhobnob@hobnob:$ git reset --hard origin/masterhobnob@hobnob:$ yarn
Next, we'll also need to generate a new set of keys and set the SWAGGER_UI_* environment variables inside the .env file:
SWAGGER_UI_PROTOCOL=httpSWAGGER_UI_HOSTNAME=docs.hobnob.socialSWAGGER_UI_PORT=80PRIVATE_KEY="..."PUBLIC_KEY="..."
Then, run the docs:update script to generate the static files which would be served by NGINX. To give NGINX access to these files, we should also update the owner and group of the docs directory to ...