-
Notifications
You must be signed in to change notification settings - Fork 2
Setup Instructions
a. Install python 2.7+
b. Install virtualenv and pip.
On ubuntu
sudo apt-get install python-pip
pip install virtualenv
c. install heroku toolbelt
Follow instructions at https://toolbelt.heroku.com/. This should also install git.
git clone https://github.com/adityabansal/newsApp
virtualenv venv
To load the created virtual environment
source venv/bin/activate
pip install -r /path/to/requirements.txt
Note: On ubuntu, you might have to run following commands for lxml to be installed:
sudo apt-get install libxml2-dev libxslt1-dev python-dev libz-dev
Add the databases, buckets and queues as described here. Create the .env containing various configuration settings and secrets and add it to repository root. This .env file will be used by foreman if you run the app locally. It is not added into git because it contains secrets (like aws keys).
foreman start
nosetests
Run the following command to set up a git remote for deploying to a heroku app
heroku git:remote -a appName
To deploy ->
git push heroku master