To setup the open-event-webapp on heroku follow the following steps:
You can use the one click deployment:
If however you live out-side the United States or Europe you may need to manually deploy Open-Event WebApp generator on Heroku as many face problems through this process. However give it a go.
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
- If you are MacOS users, you will need to install home-brew: here
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: adam@example.com
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
- Open Event Webapp uses Redis. Run the following to create a redis instance.
$ heroku addons:create heroku-redis:hobby-dev
- 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
It will fire up your deployed app like this:
However, if the web app does not fire up, try one of the following solution to resolve the issue:
- Open a new terminal and write:
$ heroku open
- Go to your heroku account on the web and deploy your app from there
Congrats you are done now!
- Your app should be available at : https://your-heroku-app-name.herokuapp.com/