Skip to content

Instantly share code, notes, and snippets.

@fuCtor
Last active January 30, 2016 08:23
Show Gist options
  • Save fuCtor/9bddaca5f4999cb5c21c to your computer and use it in GitHub Desktop.
Save fuCtor/9bddaca5f4999cb5c21c to your computer and use it in GitHub Desktop.
My Rails App default template
file 'Procfile.dev', <<-CODE
web: bin/puma -b unix://./tmp/sockets/puma.socket -e development
CODE
file 'bin/dev', <<-CODE
#!/bin/sh
bin/bundle exec foreman start --procfile=./Procfile.dev
CODE
run 'rm .gitignore'
file '.gitignore', <<-CODE
/coverage
/.localeapp
/.bundle
/.idea
/example
/public/uploads
/db/*.sqlite3
/db/*.sqlite3-journal
/log/*.log
/log
/tmp
/spec/tmp
/config/application.yml
/config/database.yml
/config/omniauth.yml
/.bundle
/vendor/bundle
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json
# Ignore pow environment settings
.powenv
# Ignore Byebug command history file.
.byebug_history
config/initializers/secret_token.rb
config/secrets.yml
CODE
run "chmod +x bin/dev"
run 'rm README.rdoc'
gem 'hamlit'
gem 'russian'
gem 'newrelic_rpm'
gem_group :development, :test do
gem "rspec-rails"
gem 'pry'
gem 'pry-rails'
gem 'pry-byebug'
gem 'quiet_assets'
gem 'annotate'
end
gem_group :development do
gem 'capistrano', '~> 3.2.0'
gem 'capistrano-rails', '~> 1.1'
gem 'capistrano-rails-collection'
gem 'capistrano-rails-console'
gem 'haml-rails'
gem 'capistrano3-puma', github: 'seuros/capistrano-puma'
gem 'foreman'
end
gem_group :production do
gem 'puma'
end
after_bundle do
git :init
git add: "."
git commit: %Q{ -m 'Initial commit' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment