To setup the open-event-webapp on heroku follow the following steps:
You can use the one click deployment:
You can also setup your app on heroku manually:
- heroku toolbelt installed on your system For more info on heroku toolbelt: here
- git installed on your system
Note: Our app has an app.json, so it can be directly forked and setup on Heroku.
- First fork and clone the open-event-webapp git repository
$ git clone https://github.com/yourusername/open-event-webapp.git
Note: replace 'yourusername' with your github username
- login into heroku toolbelt
$ heroku login
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden):
Authentication successful.
- Now change your working directory into open event webapp folder
$ cd open-event-webapp/
- do heroku create to create an heroku app
$ heroku create
Creating app... done, ⬢ your-heroku-app-name
https://your-heroku-app-name.herokuapp.com/ | https://git.heroku.com/your-heroku-app-name.git
Note: replace 'your-heroku-app-name' with your heroku app name
- check if heroku's git url is added into the remote by git remote -v
$ git remote -v
heroku https://git.heroku.com/your-heroku-app-name.git (fetch)
heroku https://git.heroku.com/your-heroku-app-name.git (push)
origin https://github.com/yourusername/open-event-webapp.git (push)
origin https://github.com/yourusername/open-event-webapp.git (push)
- if it is not added automatically add the link to heroku's repository by typing following command in terminal
$ git remote add heroku https://git.heroku.com/your-heroku-app-name.git
- now push the code from the development branch to heroku's master branch
$ git push heroku development:master
- confirm the webapp is running
$ heroku logs --tail
-
sometimes the server may take a while to start, the logs would say
State changed from starting to up
when the server is ready. -
open the URL of your server in your browser
$ heroku open
Congrats you are done now!
- Your app should be available at : https://your-heroku-app-name.herokuapp.com/