Sha256: 4d2a3b5a4e26e290adcedcdbad6f62cd1bd13717822c951f2b5305ce9d49a9a1
Contents?: true
Size: 971 Bytes
Versions: 11
Compression:
Stored size: 971 Bytes
Contents
#!/usr/bin/env sh # Set up Rails app. Run this script immediately after cloning the codebase. # https://github.com/thoughtbot/guides/tree/master/protocol # Exit if any subcommand fails set -e # Set up Ruby dependencies via Bundler gem list bundler --installed > /dev/null || gem install bundler bundle install # Set up configurable environment variables if [ ! -f .env ]; then cp .sample.env .env fi # Set up database and add any development seed data bundle exec rake db:setup dev:prime # Add binstubs to PATH via export PATH=".git/safe/../../bin:$PATH" in ~/.zshenv mkdir -p .git/safe # Pick a port for Foreman if ! grep --quiet --no-messages --fixed-strings 'port' .foreman; then printf 'port: <%= config[:port_number] %>\n' >> .foreman fi if ! command -v foreman > /dev/null; then printf 'Foreman is not installed.\n' printf 'See https://github.com/ddollar/foreman for install instructions.\n' fi # Only if this isn't CI # if [ -z "$CI" ]; then # fi
Version data entries
11 entries across 11 versions & 2 rubygems