Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Julia Elman
Matthew Irish
Mark Ransom
Jeff Triplett
Chip Warden
18 changes: 18 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# PYTHONKC.COM WEBSITE

Files for the PythonKC.com website.

## Development Quickstart
```
mkvirtualenv pythonkc
git clone git@github.com:pythonkc/pythonkc.com.git
cd pythonkc.com/pythonkc_site
pip install -r requirements/project.txt
python manage.py runserver
```

Profit! $$$

## More Detailed Instructions

See: docs/local_development
21 changes: 0 additions & 21 deletions README.rst

This file was deleted.

34 changes: 34 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# vagrant-hostmanager plugin is required
unless Vagrant.has_plugin?("vagrant-hostmanager")
raise 'vagrant-hostmanager is not installed. run: vagrant plugin install vagrant-hostmanager'
end

# vagrant-vbguest plugin is required
unless Vagrant.has_plugin?("vagrant-vbguest")
raise 'vagrant-vbguest is not installed. run: vagrant plugin install vagrant-vbguest'
end

config.vm.define "pythonkcdotdev" do |pythonkcdotdev|
pythonkcdotdev.vm.box = "box-cutter/debian81"
pythonkcdotdev.vm.hostname = "pythonkc.dev"
pythonkcdotdev.vm.network "private_network", ip: "192.168.100.101"
pythonkcdotdev.vm.synced_folder "./", "/vagrant/"
pythonkcdotdev.vm.synced_folder "./pythonkc_site", "/var/www/pythonkc_site"
# TODO: Create a synced folder location for Ansible playbooks

pythonkcdotdev.vm.provider "virtualbox" do |vb|
vb.name = "pythonkcdotdev"
vb.memory = 1024
vb.cpus = 2
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
end
pythonkcdotdev.vm.provision :shell, :path => "provision.sh"
end
end
10 changes: 10 additions & 0 deletions provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# -*- coding: utf-8 -*-

export DEBIAN_FRONTEND=noninteractive

aptitude update
aptitude dist-upgrade -y
aptitude install -y python3 python3-dev python3-pip ansible
ln -sf /vagrant /home/vagrant/
# TODO: Run Ansible playbooks