Skip to content

wearhacks/main_wearhacks

Repository files navigation

Stories in Ready

Wearhacks HQ Website

Installation

Requirements

  • pip - instructions here
  • virtualenvwrapper - instructions here
  • npm - instructions here

Quick setup

$ mkvirtualenv main_wearhacks
$ workon main_wearhacks
(main_wearhacks) $ pip install -r requirements.txt
(main_wearhacks) $ bower install
(main_wearhacks) $ cp main_wearhacks/settings/example_private.py main_wearhacks/settings/private.py
(main_wearhacks) $ python manage.py makemigrations
(main_wearhacks) $ python manage.py migrate
(main_wearhacks) $ python manage.py runserver

Now, open http://127.0.0.1:8000/.

Usage

  • To run on localhost:

    $ workon wearhacks-website
    (wearhacks-website) $ python manage.py runserver
  • To access the website from a different IP (e.g. if you are hosting the sever on a VM and accessing the site from the host:

    $ workon wearhacks-website
    (wearhacks-website) $ python manage.py runserver 0.0.0.0:8000

#Deploying on heroku In order to deploy on heroku, make sure all the environment variables are set properly. Before pushing to heroku, do the following commands to upload all the dependencies to amazon aws. Make sure to have your aws settings on private.py

APP_ENV='deploy' python manage.py compress
APP_ENV='deploy' python manage.py collectstatic
git push heroku master