Sha256: f60af0e3c3651e72ae9d59fef994c951ed4f484125f062048139e7ecd6c0c29c

Contents?: true

Size: 823 Bytes

Versions: 8

Compression:

Stored size: 823 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
bin/rake 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: 3000\n' >> .foreman
fi

if ! command -v foreman > /dev/null; then
  gem install foreman
fi

# Only if this isn't CI
# if [ -z "$CI" ]; then
# fi

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
chr-0.5.8 test/rails_app/bin/setup
chr-0.5.7 test/rails_app/bin/setup
chr-0.5.6 test/rails_app/bin/setup
chr-0.5.5 test/rails_app/bin/setup
chr-0.5.4 test/rails_app/bin/setup
chr-0.5.3 test/rails_app/bin/setup
welaika-suspenders-2.20.0 templates/bin_setup.erb
welaika-suspenders-2.19.0 templates/bin_setup.erb