Skip to content

Instantly share code, notes, and snippets.

View mshmsh5000's full-sized avatar

Matt Holford mshmsh5000

View GitHub Profile
@mshmsh5000
mshmsh5000 / Homestead.yaml
Created July 18, 2017 21:31
Homestead YAML file for code challenge
---
# You probably don't need to change this section, unless you've done fancy
# stuff elsewhere with local IP addresses.
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
# Path to your public SSH key:
@mshmsh5000
mshmsh5000 / Vagrantfile
Last active September 7, 2017 00:32
We Vote Server: Prebuilt Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "wevote-imported"
config.vm.define "wevoteserver-prebuilt", primary: true do |app|
@mshmsh5000
mshmsh5000 / WeVoteServer-vagrant-prebuilt.md
Last active September 8, 2017 14:39
WeVoteServer: Prebuilt Vagrant box instructions

Introduction

Try this method if you want to develop on WeVoteServer locally, can use Vagrant with VirtualBox on your local machine, and don't want to or can't run Ansible host (this is especially for Windows users).

You'll end up with a prebuilt Vagrant box that's the same as if you have built the We Vote Ansible/Django/Vagrant project from scratch. For further documentation on what's installed, see that project's README.

Following these instructions, you will

  • Check out the WeVoteServer codebase to a directory
  • Create a Vagrant directory at the same level
@mshmsh5000
mshmsh5000 / environmental-variables.json
Created September 7, 2017 00:32
We Vote Server: Prebuilt environmental-variables.json
{
"_comment": "Note that WE_VOTE_SERVER_ROOT_URL should end without slash",
"WE_VOTE_SERVER_ROOT_URL": "https://localhost:8889",
"WEB_APP_ROOT_URL": "http://localhost:3000",
"TIME_ZONE": "US/Pacific",
"SERVER_IN_DEBUG_MODE": true,
"_comment": "local.py settings, including database",
"DATABASE_ENGINE": "django.db.backends.postgresql_psycopg2",
"DATABASE_NAME": "wevoteserver",
table redirects {
"/Advocate": "https://www.dosomething.org/us/campaigns/suspended-what-advocate",
"/After-School": "https://www.dosomething.org/us/campaigns/mirror-messages",
"/Amplify": "https://www.dosomething.org/us/campaigns/suspended-what-amplify",
"/Andrea": "https://www.dosomething.org/us/campaigns/show-stress-whos-boss",
"/BootcampNYC": "https://www.eventbrite.com/e/dosomethingorg-social-impact-bootcamp-nyc-registration-37716035678",
"/Bootcamps": "https://www.dosomething.org/us/about/social-impact-bootcamp",
"/Boss": "https://www.dosomething.org/us/campaigns/show-stress-whos-boss",
}