howard60915 / rails4-template

rails4-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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;

First Use This Template App

  • search keywords myapp & Myapp and replace to your new name.
  • configs
    • config/application.yml
    • config/database.yml
  • Setup deploy
    • lib/capistrano/tasks/salck.rake
    • config/deploy.rb
    • config/deploy/production.rb
    • config/deploy/staging.rb
    • config/unicorn/nginx.conf.example
  • rollbar
    • config/initializers/rollbar.rb
    • config/deploy.rb
  • newrelic
    • congif/newrelic.yml
  • enabled SSL
    • keywords in this repo: SUPPORT: SSL
  • admin sidebar menu
    • app/helpers/admin_menu_helper.rb
  • SEO
    • app/helpers/meta_tag_helper.rb
    • config/schedule.rb (just uncomment)
    • config/deploy/production.rb (just uncomment)
  • staging http auth
    • app/controllers/application_controller.rb
  • remove this block from README.md

About

rails4-template


Languages

Language:Ruby 88.1%Language:HTML 10.7%Language:CoffeeScript 0.9%Language:CSS 0.2%