Sha256: d408adfa4d4ff28d431467714a2ed739b145efe130815267925846c51515c8ba

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 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
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 dev:prime

# Add binstubs to PATH via export PATH=".git/safe/../../bin:$PATH" in ~/.zshenv
mkdir -p .git/safe

# Pick a port for Foreman
echo "port: <%= config[:port_number] %>" > .foreman

# Print warning if Foreman is not installed
if ! command -v foreman &>/dev/null; then
  echo "foreman is not installed."
  echo "See https://github.com/ddollar/foreman for install instructions."
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
suspenders-1.16.0 templates/bin_setup.erb