Added more info about code structure and deployment
I have added information about
- the project structure, specifically the parts in
public/js
- how to deploy the project on heroku
- the legacy tracker
I should draw your attention to the fact that the repo hosts two different versions of the tracker and both of them are live. The older one tracked under the master
branch is used in the blog post here. It is deployed automatically when you push commits to master using Gitlab's Pages
feature. It is configured in .gitlab-ci.yml
.
At the time we launched the new tracker at https://internetshutdowns.in, it was important to keep the legacy tracker live as the page received a fair amount of traffic daily. If that isn't the case, there should be a way to gracefully retire it by updating the blog post with something relevant and branching out the current master
to legacy
and then merge webapp
into master.
Until then, the deployment has to be done with
$ git push heroku webapp:master