This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// Restore file/directory cached in previous builds. | |
// Does not do anything if: | |
// - the file/directory already exists locally | |
// - the file/directory has not been cached yet | |
async onPreBuild({ utils }) { | |
await utils.cache.restore("./.bmt-cache") | |
}, | |
// Cache file/directory for future builds. | |
// Does not do anything if: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------- | |
set :rails_env, "production" | |
set :deploy_to, "/home/#{fetch(:user)}/public_html/#{fetch(:application)}" | |
set :branch, "master" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config valid only for Capistrano 3.1 | |
lock '3.2.1' | |
# --------------------------------------------------------------------- | |
server 'server', roles: %w{web app db} | |
set :application, 'app_name' | |
set :user, 'deployer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/setup' | |
require 'capistrano/deploy' | |
require 'capistrano/chruby' | |
require 'capistrano/bundler' | |
require 'capistrano/rails/assets' | |
require 'capistrano/puma' | |
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
source 'https://rails-assets.org' | |
# --------------------------------------------------------------------- | |
gem 'rails', '4.1.0' | |
# --------------------------------------------------------------------- | |
gem 'puma', '~> 2.9.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |