Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
classes
static
templates
.gitignore
README.md
__init__.py
django.wsgi
manage.py
notes.txt
settings.py
urls.py
views.py

README.md

Classzy

Nyan nyan nyan (>")>
http://classzy.projectnyan.com/
http://bit.ly/classzy

Pre-requisites

To Import Everything

git clone git@github.com:imkevinxu/Classzy.git

Initial Setup

cd Classzy
python manage.py syncdb
python manage.py migrate

To Run Locally

python manage.py runserver

To Push

git remote add deploy ssh://ec2-user@classzy.projectnyan.com/classzy/.git (only do once)
chmod 400 classzy.pem
ssh-add classzy.pem (once every time terminal is open)
git push origin master && git push deploy master

To Access Server

Get classzy.pem

chmod 400 classzy.pem
ssh -i classzy.pem ec2-user@classzy.projectnyan.com

While Inside Server

  • work - enters project folder
  • restart - restarts the server

Typical work cycle

  • Edit files locally
  • git add/commit
  • git push origin master
  • git push deploy master
  • ssh into server and restart