Skip to content

siddhuwarrier/siddhuw.info

Repository files navigation

#Siddhu's Website

This is the source code for my website. It's hosted on Heroku for absolutely nothing.

Getting Started

  • Clone the github repository

  • Set up your environment by executing the following commands (tested on Mac OS X). I assume you have Homebrew installed.

      $ easy_install pip
      $ pip install virtualenv
    
  • Download the PostGRES app (Thank you, Heroku!) here, move it to /Applications (edit your setup_env.sh if you decide to put the .app file somewhere else).

  • Create a database called website by executing the following command:

      $ /Applications/Postgres.app/Contents/MacOS/bin/createdb website
    
  • Perform initial setup source ./setup_env.sh

  • Install required dependencies using pip

      $ pip install -r requirements.txt
    
  • Set up the database

      $ ./manage.py syncdb
    
  • Check everything works

      $ ./manage.py runserver
    

    and visiting http://localhost:8000.

Recommended: Do try the git flow branching model out. You can get it by running brew install git-flow on your terminal.

Deployment Environments

The application is served using Heroku, the first inanimate object (that isn't a motorbike or made by Apple) that I've fallen in love with. I reserve the rights to deploy to my Heroku domains for obvious reasons.:-)

There are two environments available:

  • Staging: This environment is updated regularly as I work on developing this wee website. Shadows the develop or feature branch on github.
  • Production: This environment is updated far less regularly, and shadows the master branch on github.

Getting started on Heroku

Only I hold the privileges to deploy to my domain (at least until the time when I become Siddhu Inc). To deploy to a new Heroku domain, execute the following commands after first installing the Heroku Toolbelt:

heroku create
git push heroku local-branch-name:master #you can skip local-branch-name: if you are pushing from master
heroku run ./manage.py createdb

You don't need to run syncdb if you're pushing to an existing Heroku domain. You may need to run migrate depending on whether you've made any schema changes.

About

Personal Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published