- Create a .env file with the following:
- PORT - The port in wich the server will run
- MONGO_URL - The mongo url to connect to the mongo database
- SERVER_URL - The url in wich the server is running
- CLIENT_URL - The client url
yarn dev
This step is only required when there is a server change. Must have docker and Heroku CLI instaled
-
Setup (only on the first time)
sudo heroku container:login
Docker loginheroku login
git remote add chatzinho-da-bolagem https://git.heroku.com/chatzinho-da-bolagem.git
-
sudo heroku container:push web
-
heroku container:release
Obs: When a new commit to the original repository is created a pipeline from BuddyWorks will build and push a new Docker image to the docker hub.
The client will be automatically published (with some delay) trhough a BuddyWorks pipeline. It willbuild the client and push to the repository ws-client and be accesible at github pages.