Heroku Integration
How to add Ziggeo to Heroku
How it works
The great thing about the Heroku integration for you is that you do not need to do any setup to have it work and be available to share link for everyone.
Additional steps can be taken, however this is just if you so desire. We will provide you with the steps that would help you with the same bellow.
Setup with Heroku addon
Heroku addon brings the Ziggeo backend as well as Ziggeo frontend scripts to you to use.
The benefit of this is that you can call the backend API using different server side SDKs. The one you would use depends on what you are already using.
One of the important steps to create an addon is to create and maintain well formatted information on Heroku itself. As such you can quickly and easily find all info you might need on following Heroku addon page.
Setup on Heroku using Open Source Recruiting tool
The great thing about this solution is that you click a button and it gets deployed. That is it, nothing else is needed to have it work. If you are not sure where the button is, you can find it here.
Well you are here, so you probably do want to make some changes and that is super easy as well.
There are 2 ways. One is using Heroku console and another is using GitHub in combination with Heroku.
Using GitHub
This second approach allows your devs to use the tools that they are already familiar with.
Heroku maintains the article on this on the following page.
It will allow you to see how you can quickly set up everything as GitHub repo and then push things to your Github repo as usually, and have the changes shown on your Heroku.
If you want to just grab the current code and then change it, you might prefer the second approach
Using Heroku console
You should already have Heroku and Ziggeo account at this point.
- Go to a folder where you would keep the code locally.
- Clone our repository into the folder
- in console:
git clone http://github.com/Ziggeo/ApplicantTracking
- in console:
- You will need to remove the
.git
directory that is within this folder. - On Heroku, create an application with MongoDB.
- You will need to either use the ObjectRocket by Rackspace MongoDB addon or
- Create an account on Atlas (mLab) and go through all of the steps there.
- if not already, get the details from Project View
- Using the details you got from ObjectRocket addon or Atlas, you would create your connection to MongoDB as following:
heroku config:set DB_URL={URL YOU GOT}
- Install the Heroku Toolbelt
- At this point you want to go back to the directory where you cloned the Applicant Tracking repo (step 1 and 2)
- initialize the repository
- This has to be done after you done all steps above
- in console:
git init
- Now add the necessary info to Heroku about your code. This is all done in console
heroku accounts:add yourappname –auto heroku accounts:set yourappname heroku git:remote -a yourappname –account yourappname
- You would replace
yourappname
with the name of your application in Heroku.
- Run
heroku config
in console. This will give you DB_NAME and MONGODB_URL. - Log into your Ziggeo dashboard and under Overview, get your application token.
- At this time you should modify few scripts in your code, so open your editor.
- Open
settings.py
in your favorite editor in it, you will need to make few simple changes.- Change
COOKIE_SECRET
to something random within this file. - Add
DB_NAME
,MONGODB_URL
andZIGGEO_TOKEN
into the same and save. - title and administrators can changed in this file as well.
- Change
- Changing the templates files you will be able to change the look and the questions.
- Once everything is ready, your console should be used for the following few commands
git add . git commit -a -m “Initial Commit” git push heroku master