资源说明:Personal Website
#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](http://postgresapp.com/download), 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](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](http://www.heroku.com), 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](http://staging.siddhuw.info): This environment is updated regularly as I work on developing this wee website. Shadows the `develop` or `feature` branch on github. * [Production](http://www.siddhuw.info): 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](https://toolbelt.heroku.com/): 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.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。