TL;DR
Install Postgres 9.6, and then:
sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 mainSet db path for pg_upgradecluster:
| set :rails_env, "production" | |
| set :passenger_port, 9292 | |
| set :passenger_cmd, "#{bundle_cmd} exec passenger" | |
| namespace :deploy do | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && #{passenger_cmd} start -e #{rails_env} -p #{passenger_port} -d" | |
| end | |
| task :stop, :roles => :app, :except => { :no_release => true } do |
| ## | |
| # Command line logging during Spree 0.11 to 1.0.0.rc1 migration. | |
| # (Skipping source control commands.) | |
| ## | |
| Sites | |
| > rvm gemset create asgseedbank-1.0.0rc | |
| Sites | |
| > rvm gemset use asgseedbank-1.0.0rc |
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ |
| require 'formula' | |
| class Postgis20 < Formula | |
| homepage 'http://postgis.net' | |
| url 'http://download.osgeo.org/postgis/source/postgis-2.0.3.tar.gz' | |
| sha1 '825c1718cf2603fa0f1c2de802989dff7239f9bc' | |
| head 'http://svn.osgeo.org/postgis/trunk/' | |
| option 'with-gui', 'Build shp2pgsql-gui in addition to command line tools' |
| source 'http://rubygems.org' | |
| gem "benchmark-ips" | |
| gem "rgeo" | |
| gem "ffi-geos" | |
| gem "rgeo-shapefile" | |
| gem "rgeo-geojson" | |
| gem "georuby", require: "geo_ruby" |
| class ElasticsearchAT17 < Formula | |
| desc "Distributed search & analytics engine" | |
| homepage "https://www.elastic.co/products/elasticsearch" | |
| url "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.6.tar.gz" | |
| sha256 "78affc30353730ec245dad1f17de242a4ad12cf808eaa87dd878e1ca10ed77df" | |
| revision 1 | |
| bottle :unneeded | |
| keg_only :versioned_formula |
TL;DR
Install Postgres 9.6, and then:
sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 mainSet db path for pg_upgradecluster:
I hereby claim:
To claim this, I am signing this object: