layout | title |
---|---|
default |
Cloud Deployment |
- Clone repo to
/srv/restful-news
(use~/.ssh/read-key
&~/.ssh/config
file) - Set environment variables file
.env
(see .env.example) - Run
restful-news/scripts/init.sh
to set up server
docker-compose logs
Show logs- TODO: Route up proper PM2 logs to file
Environment variables from .env
are accessible by the Node app through docker-compose.yml which routes them into the api container. PM2 automatically makes them available to each Node server.