Sha256: 3ccf86d1607933316c3d52d3b25a27c3d102cad563a8916d67735cb27a9b0c0f

Contents?: true

Size: 958 Bytes

Versions: 38

Compression:

Stored size: 958 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 install bundler --conservative
bundle check || 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

38 entries across 38 versions & 9 rubygems

Version Path
chr-0.4.13 templates/bin_setup.erb
underwear-0.0.1 templates/bin_setup.erb
chr-0.4.12 templates/bin_setup.erb
chr-0.4.11 templates/bin_setup.erb
chr-0.4.10 templates/bin_setup.erb
chr-0.4.9 templates/bin_setup.erb
welaika-suspenders-2.17.0 templates/bin_setup.erb
suspenders-1.31.0 templates/bin_setup.erb
welaika-suspenders-2.15.0 templates/bin_setup.erb
suspenders-1.30.0 templates/bin_setup.erb
bowties-2.0.0 templates/bin_setup.erb
welaika-suspenders-2.13.0 templates/bin_setup.erb
welaika-suspenders-2.12.0 templates/bin_setup.erb
slining-1.1.0 templates/bin_setup.erb
suspenders-1.29.0 templates/bin_setup.erb
slining-1.0.1 templates/bin_setup.erb
slining-1.0.0 templates/bin_setup.erb
welaika-suspenders-2.11.0 templates/bin_setup.erb
stoker-1.0.0.pre5 templates/bin_setup.erb
stoker-1.0.0.pre4 templates/bin_setup.erb