Permalink
Browse files

Remove Vagrant stuff.

This is outdated and not how I test RawGit anymore.
  • Loading branch information...
1 parent dc4d70f commit 98c3e34205590d044648670aa96bdcf88cc9becc @rgrove committed Jul 23, 2016
Showing with 0 additions and 54 deletions.
  1. +0 −10 Vagrantfile
  2. +0 −44 scripts/bootstrap.sh
View
@@ -1,10 +0,0 @@
-Vagrant.configure("2") do |config|
- config.vm.box = "ubuntu/trusty64"
-
- config.vm.provision :shell, :path => "scripts/bootstrap.sh"
- config.vm.network :forwarded_port, guest: 80, host: 5000, auto_correct: true
- config.vm.network :forwarded_port, guest: 443, host: 5443, auto_correct: true
-
- config.vm.synced_folder "./", "/data/www/rawgit.com",
- create: true, group: "www-data"
-end
View
@@ -1,44 +0,0 @@
-#!/usr/bin/env bash
-#
-# Bootstraps an Ubuntu dev server to run RawGit fronted by Nginx.
-#
-
-apt-get update
-apt-get install -y g++ make python python-software-properties
-
-add-apt-repository -y ppa:nginx/stable
-add-apt-repository -y ppa:chris-lea/node.js
-apt-get update
-
-apt-get install -y nginx nodejs
-
-adduser --system --no-create-home rawgit
-
-mkdir -p /data/cache/nginx/cdn /data/cache/nginx/rawgit /data/logs /data/ssl
-rm /etc/nginx/sites-enabled/default
-ln -sf /data/www/rawgit.com/conf/etc/rawgit.nginx.conf /etc/nginx/sites-enabled/
-cp /data/www/rawgit.com/conf/etc/rawgit.upstart.conf /etc/init/rawgit.conf
-
-cat >> /tmp/openssl.cnf <<EOF
-[ req ]
-prompt = no
-distinguished_name = req_distinguished_name
-
-[ req_distinguished_name ]
-C = US
-ST = Some State
-L = Some City
-O = Monkeys
-OU = Pants
-CN = localhost
-emailAddress = nobody@example.com
-EOF
-
-openssl genrsa 2048 > /data/ssl/rawgit-key.pem
-openssl req -config /tmp/openssl.cnf -new -key /data/ssl/rawgit-key.pem -out /data/ssl/rawgit.csr
-openssl x509 -req -days 1826 -in /data/ssl/rawgit.csr -signkey /data/ssl/rawgit-key.pem -out /data/ssl/rawgit.crt
-
-stop rawgit
-start rawgit
-/etc/init.d/nginx stop
-/etc/init.d/nginx start

0 comments on commit 98c3e34

Please sign in to comment.