Skip to content

Instantly share code, notes, and snippets.

@lajunta
Created May 22, 2015 16:18
Show Gist options
  • Save lajunta/4b2a907192683fec6660 to your computer and use it in GitHub Desktop.
Save lajunta/4b2a907192683fec6660 to your computer and use it in GitHub Desktop.
add_source "https://ruby.taobao.org/"
gem 'slim-rails'
gem 'mongoid'
gem 'puma'
gem 'bootstrap-sass'
gem 'font-awesome-sass'
gem 'zbox'
app_name = ask("What is your app name ?")
file 'config/mongoid.yml', <<-CODE
development:
sessions:
default:
database: #{app_name}_development
hosts:
- localhost:27017
options:
options:
raise_not_found_error: false
production:
sessions:
default:
database: #{app_name}_production
hosts:
- localhost:27017
CODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment