anebz / boulder

Occupancy tracker for bouldering gyms
http://boulder.anebz.eu
7 stars 3 forks source link

Deploy backend infra to Heroku #9

Closed anebz closed 3 years ago

anebz commented 3 years ago
anebz commented 3 years ago

Decided to skip cron job altogether and use a scheduler python library instead. Next step is creating a backend docker image, deploy it to Heroku so that the python scheduler is running all the time and running the backend script every 15mins

anebz commented 3 years ago

Created a backend docker image and pushed it alongside the web part to Heroku, writing backend in heroku.yml. It's necessary to upscale the backend: heroku ps:scale backend=1 but after that the frontend and backend work in the same Heroku app 🥳 .