Created
February 13, 2013 14:55
-
-
Save alexisbellido/4945125 to your computer and use it in GitHub Desktop.
Create this in ~/dev_run-x_YourTango_SecretWeapon_development and chmod u+x. Replace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
PROJECTDIR=/home/alexis/yourtango_secret_weapon_development | |
PROJECTENV=/home/alexis/.virtualenvs/x_YourTango_SecretWeapon_development | |
source $PROJECTENV/bin/activate | |
cd $PROJECTDIR | |
export LC_ALL="en_US.UTF-8" | |
export YTSW_DATABASES_DEFAULT_NAME_DEVELOPMENT="db_name" | |
export YTSW_DATABASES_DEFAULT_USER_DEVELOPMENT="db_user" | |
export YTSW_DATABASES_DEFAULT_PASSWORD_DEVELOPMENT="db_pass" | |
export YTSW_DATABASES_DEFAULT_HOST_DEVELOPMENT="localhost" | |
export YTSW_DATABASES_DEFAULT_PORT_DEVELOPMENT="5433" | |
django-admin.py runserver --pythonpath=`pwd` --settings=YourTango_SecretWeapon.settings.development 192.168.1.15:8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment