# bundler specific
set :bundle_flags, '--deployment' # from --deployment --quiet
Run bundle cache
Copy & paste the following to your Gemfile
def bitbucket repo; {git: 'ssh://[email protected]/'+repo} ;end
Usage
gem 'xxx', github('user/repo')
This file contains hidden or 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
desc "DESC" | |
task TASK: ['deploy:set_rails_env'] do | |
on roles :app do | |
within release_path do | |
# within current_path do | |
with rails_env: fetch(:rails_env) do | |
execute "rake", "another:task" | |
end | |
end | |
end |
This file contains hidden or 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
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "usage: $(basename $0) command" | |
exit 1 | |
fi | |
set -e |
This file contains hidden or 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
#!/usr/bin/ruby | |
if ARGV.length != 1 | |
print "[Exit] need 1 argument (now #{ARGV.length})\n" | |
exit | |
end | |
pattern = ARGV[0] | |
cmd = "grep '#{pattern}' . -R" |
This file contains hidden or 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' | |
# We are not loading Active Record, nor Active Resources etc. | |
# We can do this in any app by simply replacing the rails gem | |
# by the parts we want to use. | |
gem "actionpack" | |
gem "railties" | |
gem "tzinfo" | |
# Let's use thin |
NewerOlder