Sha256: 2bae743fcdf0a83b7d25d309876df00029da4cbab771dd3cb3adf07589c4a81e

Contents?: true

Size: 806 Bytes

Versions: 3

Compression:

Stored size: 806 Bytes

Contents

#!/usr/bin/env sh
# TODO: Make setup script better.

# 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
bundle --version &> /dev/null || gem install bundler --no-document
bundle install

# Setup database
echo "Running rake db:create ; rake db:migrate"
database_not_set_up=$(grep "<your username>" config/database.yml)
if [ database_not_set_up ]; then
  tput setaf 1; echo "\nDatabase not set up! Change your settings in database.yml\n"; tput sgr0
else
  rake db:create
  rake db:migrate
fi

# Generate rollbar config
bin/rails generate rollbar
# Generate simple_form config
bin/rails generate simple_form:install
# Copy i18n-tasks spec over
cp $(i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bluebase-1.1.0 templates/bin/setup
bluebase-1.0.1 templates/bin/setup
bluebase-1.0.0 templates/bin/setup