Add the following gems to your gem file:
group :development, :test do
gem 'jasmine'
gem 'jasminerice'
gem 'database_cleaner'
gem 'capybara'
gem 'rspec', ">= 2.5.0"
gem "rspec-rails", ">= 2.5.0"
Add the following gems to your gem file:
group :development, :test do
gem 'jasmine'
gem 'jasminerice'
gem 'database_cleaner'
gem 'capybara'
gem 'rspec', ">= 2.5.0"
gem "rspec-rails", ">= 2.5.0"
#!/usr/bin/env bash | |
set -u | |
set -e | |
export GIT_WORK_TREE="/var/www/example.com" | |
export NODE_VERSION="0.10" | |
echo "--> Checking out..." | |
git checkout -f |
#!/bin/bash | |
source $HOME/.bash_profile | |
set -u | |
set -e | |
# directory name | |
NAME=$(basename $(pwd) .git) |
# force HTTPS and www. | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} (?!^www\.)^(.+)$ [OR] | |
RewriteCond %{HTTPS} off | |
RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L] | |
# alternative way | |
RewriteCond %{HTTP_HOST} !^$ | |
RewriteCond %{HTTP_HOST} !^www\. [NC] |