Skip to content

5fpro/jupiter

Repository files navigation

Project Build

  • make sure you have already start PostgreSql & Redis
bundle install
cp config/database.yml.example config/database.yml
cp config/application.yml.example config/application.yml
  • setup database.yml & start postgresql.
bundle exec rake dev:build

memcached

brew install memcached
memcached -d

Redis

  • install
brew install redis
  • start redis ( ctrl + c to stop)
redis-server

PostgreSql

  • install
brew install postgresql
brew unlink postgresql
brew link postgresql
ARCHFLAGS="-arch x86_64" gem install pg
psql
  • replace your_name & your_password
CREATE USER your_name WITH PASSWORD 'your_password';
CREATE DATABASE "your_name";
GRANT ALL PRIVILEGES ON DATABASE "your_name" to "your_name";
ALTER USER "your_name" WITH SUPERUSER;

RSpec

bundle exec rake spec

Rubocop

  • Execution
bundle exec rubocop
  • Debug
bundle exec rubocop --auto-gen-config
# Then see .rubocop_todo.yml
  • Auto fix
bundle exec rubocop --auto-correct