Created
April 7, 2013 13:58
-
-
Save rileycrane/5330598 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
GUIDE: https://github.com/jbergantine/django-newproj/blob/master/docs/vagrant.markdown | |
mkdir website | |
cd website | |
curl https://gist.github.com/rileycrane/5326580/raw/294046048b77bfd610685307de31df2199ac4935/Gemfile > Gemfile | |
bundle | |
curl https://gist.github.com/rileycrane/5326587/raw/002a6cc89cbf20346f9b72e3238a78cb3cfadece/knife.rb > knife.rb | |
knife solo init . | |
curl https://gist.github.com/rileycrane/5326617/raw/4040cee198f74cbc4be45bc1b066bbc2ec6845bf/Cheffile > Cheffile | |
librarian-chef install | |
curl https://raw.github.com/gist/3875868/gistfile1.rb > Vagrantfile | |
vagrant up | |
[enter machine password for network] | |
vagrant ssh | |
------------------------------ | |
FIX SYMBOLIC LINK ISSUES | |
https://github.com/jbergantine/django-newproj-template/issues/17 | |
------------------------------ | |
cd ~/.virtualenvs/djangoproj/bin | |
rm python; rm python2; rm python2.7 | |
ln -s /usr/bin/python python2.7 | |
vagrant provision # (again to get things working) | |
------------------------------ | |
FIX settings BACKEND | |
myproject/myproject/settings/development.py | |
------------------------------ | |
CACHES = { | |
'default': { | |
'BACKEND': 'django.core.cache.backends.dummy.DummyCache', | |
} | |
} | |
------------------------------ | |
FIX DB | |
https://github.com/jbergantine/chef-cookbook-djangonewproj/issues/2 | |
http://blog.deliciousrobots.com/2011/12/13/get-postgres-working-on-ubuntu-or-linux-mint/ | |
------------------------------ | |
sed -ie 's/local all all ident/#local all all ident/g' /etc/postgresql/9.1/main/pg_hba.conf | |
sudo service postgresql restart | |
# POSSIBLY THIS | |
#open up this file /etc/postgresql/9.1/main/pg_hba.conf | |
#change | |
# local all all peer | |
#to | |
# local all all md5 | |
python manage.py syncdb | |
python manage.py migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment