Sha256: 5641dfc17c39544d8ca3459de1259efd41eb50b20007a2a61dd108bf9216bf25
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
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 .env.example .env fi # Set up local Procfile if [ ! -f Procfile.local ]; then cp Procfile.local.example Procfile.local 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 if ! command -v ember > /dev/null; then npm install -g ember-cli fi if ! command -v bower > /dev/null; then npm install -g bower fi (cd frontend; npm install; bower install) # Only if this isn't CI # if [ -z "$CI" ]; then # fi
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stoker-1.0.0.pre6 | templates/bin_setup.erb |