Created
October 17, 2014 20:12
-
-
Save samehmohamed88/2327b4fb31de2cbfddb3 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
#install all dependencies in a debian based system | |
sudo apt-get install -y python-distribute mysql-server mongodb libldap2-dev libsasl2-dev python-ldap libmysqlclient-dev python-dev unixodbc-dev libxml2-dev libxslt1-dev | |
#install pip to manage virtualenv | |
sudo easy_instal pip | |
#install a nice to use virtualenv utitlity | |
sudo pip install virtualenvwrapper | |
#this gist prints the git branch as well as the virtualenv name on the prompt | |
curl https://gist.githubusercontent.com/webiken/71aa48d381c231513f3e/raw/a7f10c73c1f48e7713eb7df00e83c37b6716970e/bash_profile > ~/.bash_profile | |
#activate the gist | |
source ~/.bash_profile | |
#create virtualenv and install django dependencies | |
mkvirtualenv myknowu && workon myknowu && pip install --allow-unverified pyodbc pyodbc && pip install -r requirements.txt | |
#### MYSQL COMMANDS TO BE RUN PRIOR TO SYNC DB #### | |
#create database django; | |
#create database drupal; | |
#create user 'harrison' identified by '<pass>'; | |
#grant all privileges on drupal.* to 'harrison'@'localhost' identified by '<pass>'; | |
#grant all privileges on django.* to 'harrison'@'localhost' identified by '<pass>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment