Sha256: ced56279bea63f31e41b65e2b389f25b340dbb295114bb0215f0c293ca7a1004

Contents?: true

Size: 843 Bytes

Versions: 8

Compression:

Stored size: 843 Bytes

Contents

#!/usr/bin/env sh

# Set up Rails app. Run this script immediately after cloning the codebase

# 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"
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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roboparts-0.6.4 templates/bin_setup.erb
roboparts-0.6.3 templates/bin_setup.erb
roboparts-0.6.2 templates/bin_setup.erb
roboparts-0.6.1 templates/bin_setup.erb
roboparts-0.6.0 templates/bin_setup.erb
roboparts-0.5.4 templates/bin_setup.erb
roboparts-0.5.3 templates/bin_setup.erb
roboparts-0.5.2 templates/bin_setup.erb