TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 mainTL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main| begin | |
| require "bundler/inline" | |
| rescue LoadError => e | |
| $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
| raise e | |
| end | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| # Activate the gem you are reporting the issue against. |
| > rails -v | |
| Rails 5.1.0.rc1 | |
| > rails new rails_vue --webpack=vue | |
| create | |
| create README.md | |
| create Rakefile | |
| create config.ru | |
| create .gitignore | |
| create Gemfile | |
| run git init from "." |
| # Usage example: | |
| # | |
| # class User < ActiveRecord::Base | |
| # include UniqueConstraintHandler | |
| # handle_unique_constraint_on :email | |
| # end | |
| # | |
| # User.create email: '[email protected]' | |
| # user = User.create email: '[email protected]' | |
| # user.new_record? #=> true |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| echo 127.0.0.1 rendezvous-eu-west-1-a.runtime.heroku.com >> /etc/hosts | |
| ssh -L 5000:rendezvous-eu-west-1-a.runtime.heroku.com:5000 remoteuser@remoteserver |
http://www.softwareqatest.com/qatweb1.html#LOAD
Tools:
| # Hack to change the Rails cookie serializer from Marshal to JSON and therefore allow the session | |
| # to be shared between different languages but also avoid that someone knowing the | |
| # cookie secret key could execute arbitrary code on the server by unmarshalling | |
| # modified Ruby code added to the session/permanent cookie. | |
| # | |
| # Note that all users will beed to login again since both the remember me cookie and the session cookies | |
| # won't be valid. Note also that the remember me cookie is tested multiple times per request even when it fails. | |
| # for performance reasons you might want to delete it if these extra cycles are too costly for you. | |
| # | |
| # Rails 4 (not tested on Rails 3). |
| #!/bin/bash | |
| # From this stackexchange question: http://unix.stackexchange.com/questions/72746 | |
| set -e | |
| package=php5-fpm | |
| mkdir $package | |
| cd $package |