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
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
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
docker rm $(docker ps -q -f status=exited) | |
docker volume rm $(docker volume ls -qf dangling=true) | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) | |
docker rmi $(docker images | grep "<none>" | awk "{print $3}") -f | |
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
# Add the following to /etc/hosts: | |
127.0.0.1 local.s3.endpoint local-bucket.local.s3.endpoint | |
# Run the following in your rails console, in order to create a bucket: | |
s3=AWS::S3.new( | |
:access_key_id => 'anything', | |
:secret_access_key => 'anything', | |
:s3_endpoint => 'local.s3.endpoint', | |
:s3_port => 4567, | |
:use_ssl => false |
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 'bundler/capistrano' | |
set :application, "net" | |
set :repository, "git@githost.com:net.git" | |
set :scm, :git | |
set :default_environment, { | |
'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" | |
} |