Skip to content

Instantly share code, notes, and snippets.

set :branch, "staging"
set :rails_env, 'staging'
role :web, '127.0.0.1:2201'
role :app, '127.0.0.1:2201'
role :db, '127.0.0.1:2201', :primary => true
set :branch, "master"
set :rails_env, 'production'
role :web, '127.0.0.1:2200'
role :app, '127.0.0.1:2200'
role :db, '127.0.0.1:2200', :primary => true
# Configure Spree Preferences
#
# Note: Initializing preferences available within the Admin will overwrite any changes that were made through the user interface when you restart.
# If you would like users to be able to update a setting with the Admin it should NOT be set here.
#
# In order to initialize a setting do:
# config.setting_name = 'new value'
Spree.config do |config|
# Example:
# Uncomment to override the default site name.
Store::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both thread web servers
# and those relying on copy on write to perform better.
# Rake tasks automatically ignore this option for performance.
require "bundler/capistrano"
load 'deploy/assets'
set :stages, %w(production staging)
set :default_stage, 'staging'
require 'capistrano/ext/multistage'
set :application, "spree"
set :user, 'spree'
set :group, 'www-data'
# -*- 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
sudo apt-get install -y python-software-properties
sudo add-apt-repository ppa:fish-shell/nightly-master
sudo add-apt-repository ppa:lvillani/silversearcher
sudo sed -i -e 's/us.archive.ubuntu.com/ubuntu.wikimedia.org/g' /etc/apt/sources.list
sudo apt-get update -qq
sudo apt-get install -y git-core build-essential ranger htop vim highlight tmux nodejs curl silversearcher-ag fish
ranger #quit
ranger --copy-config=all
chsh -s /usr/bin/fish
fish
Devise.secret_key = 'my secret is at least thirty characters long'
Store::Application.config.secret_token = 'my secret is at least thirty characters long'
Store::Application.config.secret_key_base = 'my secret is at least thirty characters long'
spree ALL=NOPASSWD: /usr/local/bin/bluepill