Skip to content

Deploying to Heroku

Kevin Camellini edited this page Sep 21, 2018 · 2 revisions

* update(2018-09-20): Any commits to Master will be pushed to the server automatically.


A workaround to deploying the app to heroku, since the project is not in the root folder but in the /wesbite directory, Heroku throws an error because it cannot find the language to build from. This sketchy workaround pushes only the /website directory to heroku.

$ cd .../website
$ git init
$ git add .
$ git commit -m "deploy to heroku"
$ git push --set-upstream [email protected]:soen343t5.git master
$ rm -fr .git
# the last line is to remove the newly created temporary git from our project

Stack Overflow solution here
Getting started with Node on Heroku link

*note: a solution does exist using subtree's but I couldn't figure it out

Clone this wiki locally