Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'rails', '3.2.22'

gem 'mysql2'

gem 'unicorn', '1.1.5'
gem 'unicorn'

# Gems used only for assets and not required
# in production environments by default.
Expand Down
12 changes: 9 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ GEM
json (1.8.3)
juggernaut (2.1.1)
redis
kgio (2.10.0)
listen (1.1.6)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
Expand Down Expand Up @@ -213,6 +214,7 @@ GEM
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
raindrops (0.16.0)
rake (10.4.2)
rb-fsevent (0.9.3)
rb-inotify (0.9.2)
Expand Down Expand Up @@ -282,8 +284,9 @@ GEM
unf (0.1.4)
unf_ext
unf_ext (0.0.6)
unicorn (1.1.5)
rack
unicorn (5.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)
uuidtools (2.1.4)
vegas (0.1.11)
rack (>= 1.0.0)
Expand Down Expand Up @@ -332,4 +335,7 @@ DEPENDENCIES
simplecov
uglifier (>= 1.0.3)
unf_ext (= 0.0.6)
unicorn (= 1.1.5)
unicorn

BUNDLED WITH
1.11.2
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ The other repos involved in ggtracker are:
used by this codebase


### Running with vagrant
You can either run ggtracker in a vagrant-controlled virtualbox or on your host operating system (described after this section).
To run with vagrant run the following commands:

* Make sure you have vagrant+virtualbox installed on your computer
* Run `vagrant up` to create the virtual box
* Run `vagrant ssh` to ssh into the vagrant box
* Run `ssh-keygen` in the vagrant box to generate ssh-keys for github
* Upload your public keys to Github
* Clone `ggtracker` project to `vagrant` user's home directory in the vagrant box
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessary to generate ssh-keys in vagrant. The folder containing the Vagrantfile is accessible at /vagrant in the VM. A few less steps to repeat when creating the virtual box again.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, that results in errors when running bundler. I should try things before I make comments. :) However, maybe it is possible to use https for cloning? New to bundler, so please ignore if appropriate.

* Run the installation and updating steps below
* The app will be on the vagrant box's ip instead of localhost.

### Requirements

* Ruby 1.9+ (get RVM: https://rvm.io/)
Expand Down
13 changes: 13 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network :private_network, type: "dhcp"
config.vm.hostname = "ggtracker"

config.vm.provision "shell", path: "setup-vagrantbox.sh"

config.vm.provider :virtualbox do |vb|
vb.memory = 1536
vb.cpus = 2
vb.name = "ggtracker"
end
end
12 changes: 12 additions & 0 deletions setup-vagrantbox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

export DEBIAN_FRONTEND=noninteractive

add-apt-repository ppa:chris-lea/redis-server -y

apt-get update

apt-get install -y ruby redis-server nodejs npm mysql-server git-core ruby-dev libcurl4-openssl-dev libmysqlclient-dev build-essential libxml2-dev libxslt-dev

gem install bundler
npm install -g juggernaut