Name: 2016-symposion
Owner: PyCon Canada
Description: Symposion app for PyCon Canada 2016.
Created: 2016-06-09 22:45:45.0
Updated: 2016-07-08 19:13:33.0
Pushed: 2016-10-09 00:39:16.0
Size: 635
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
noreply
emailsite.css
Install nvm
.
Install a version of NodeJS via nvm
.
urce ~/.nvm/nvm.sh # or where ever you installed nvm.sh
m install <VERSION>
Install the dependencies:
m install -g less uglify-js
Build site.css
(from the project root):
ke site.css
cd 2016-symposion
mkvirtualenv pycon_symposion
)pip install --upgrade -r requirements.txt
python manage.py collectstatic
python manage.py migrate
python manage.py runserver
NOTE: default development settings module is symposion2016.settings.dev
You will need the following:
Start by cloning the repository:
t clone git@github.com:pyconca/2016-symposion.git 2016-symposion
2016-symposion
Create a python virtual environment:
virtualenv pycon_symposion
on_symposion) ~/2016-symposion $
The (pycon_symposion)
prefix indicates that a virtual environment called “pycon_symposion” is being used. Next, check that you have the correct version of Python:
on_symposion) ~/2016-symposion $ python --version
on 2.7.12
on_symposion) ~/2016-symposion $ pip --version
8.0.2 from /Users/.../site-packages (python 2.7)
Make sure that postgres development package is installed
titude install postgresql-server-dev-9.5
Install the project requirements:
on_symposion) ~/2016-symposion $ pip install --upgrade -r requirements.txt
Collect the static assets:
on_symposion) ~/2016-symposion $ python manage.py collectstatic
Create the database:
on_symposion) ~/2016-symposion $ python manage.py migrate
Run the project:
on_symposion) ~/2016-symposion $ python manage.py runserver
Clone the symposion repository in a new directory:
on_symposion) ~/2016-symposion $ cd ..
on_symposion) $ git clone git@github.com:pyconca/symposion.git symposion
on_symposion) ~/symposion $ cd ~/symposion
Next replace the GitHub version of symposion with your local copy:
on_symposion) ~/symposion $ python setup.py develop
Have database password handy and run:
fab <environment> deploy -i <path/to/pub_key>
Environments:
staging
production
(to come)