From 9c3503a9a1ccd310f465a36c25d9149d28560817 Mon Sep 17 00:00:00 2001 From: Jon Smajda Date: Sat, 8 Aug 2015 11:35:05 -0500 Subject: [PATCH 1/3] .env does not need to be a shell script --- pythonkc_site/.env.example | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pythonkc_site/.env.example b/pythonkc_site/.env.example index e56fb5e..6c2df8c 100644 --- a/pythonkc_site/.env.example +++ b/pythonkc_site/.env.example @@ -1,3 +1,2 @@ -#!/bin/bash -export MEETUP_API_KEY='your-meetup-api-key-here' -export DJANGO_SECRET_KEY='django-secret-key-here' +MEETUP_API_KEY='your-meetup-api-key-here' +DJANGO_SECRET_KEY='django-secret-key-here' From e60a62bc7bf71de06691c6c1685897e20d4809f2 Mon Sep 17 00:00:00 2001 From: Jon Smajda Date: Sat, 8 Aug 2015 11:35:41 -0500 Subject: [PATCH 2/3] Improve vagrant instructions in vagrant --- README.markdown | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index dc7d4e5..a539343 100644 --- a/README.markdown +++ b/README.markdown @@ -6,7 +6,15 @@ Files for the PythonKC.com website. ## Development Quickstart Option 1 (vagrant) -First, copy `pythonkc_site/.env.example` to `pythonkc_site/.env` and add +We're going to use Vagrant and Virtualbox to run pythonkc.com inside a Debian +VM. We're using the [shell provisioner][] to install Ansible inside our VM and +then using Ansible to manage the environment from there. (Note: we're *not* +using the [ansible provisioner][].) + +First you need to install [Vagrant][] and [VirtualBox][] and clone [our +repository][] from github. + +Now copy `pythonkc_site/.env.example` to `pythonkc_site/.env` and add your own [meetup api key][] and a unique [django secret key][] (`.env` will be ignored by git) @@ -68,5 +76,11 @@ See: docs/local_development +[Vagrant]: https://www.vagrantup.com/downloads.html +[VirtualBox]: https://www.virtualbox.org +[shell provisioner]: http://docs.vagrantup.com/v2/provisioning/shell.html +[ansible provisioner]: http://docs.vagrantup.com/v2/provisioning/ansible.html +[our repository]: https://github.com/pythonkc/pythonkc.com [meetup api key]: https://secure.meetup.com/meetup_api/key/ [django secret key]: http://www.miniwebtool.com/django-secret-key-generator/ + From 29859c34a30b0b621d203642866aae93d241941c Mon Sep 17 00:00:00 2001 From: Jon Smajda Date: Sat, 8 Aug 2015 11:56:00 -0500 Subject: [PATCH 3/3] Also may need to install vbguest plugin --- README.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/README.markdown b/README.markdown index a539343..d11fd8b 100644 --- a/README.markdown +++ b/README.markdown @@ -21,6 +21,7 @@ be ignored by git) Then you have to install some vagrant plugins and build your vagrant box: ``` +vagrant plugin install vagrant-vbguest vagrant plugin install vagrant-hostmanager vagrant plugin install vagrant-hostsupdater vagrant up