Skip to content

Instantly share code, notes, and snippets.

@binaryphile
binaryphile / gist:9491223
Last active August 29, 2015 13:57
phantomjs error
An error occurred in an after hook
Cliver::Dependency::VersionMismatch: Could not find an executable 'phantomjs' that matched the requirements '~> 1.8', '>= 1.8.1'. Found versions were {"/home/ted/.g
em/ruby/2.0.0/bin/phantomjs"=>"2.0.0"}.
occurred at /home/ted/.gem/ruby/2.0.0/gems/cliver-0.2.2/lib/cliver/dependency.rb:149:in `raise_version_mismatch!'
~/D/p/s/2/s/frontend *payment_state> gem list phantomjs
*** LOCAL GEMS ***
phantomjs-binaries (1.8.1.1)
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'