Last active
October 19, 2018 14:49
-
-
Save embs/483531e27cbce335b5bd4938648f5130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ruby build-essential patch ruby-dev zlib1g-dev liblzma-dev libsqlite3-dev | |
gem install rails | |
rails new rails_app | |
cd rails_app | |
wget https://gist.githubusercontent.com/embs/483531e27cbce335b5bd4938648f5130/raw/7795bba840beda2cdc7c1b4e930e2e2fa4f39b6d/Gemfile -O Gemfile | |
bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
ruby '2.3.1' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '~> 5.2.1' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Use Puma as the app server | |
gem 'puma', '~> 3.11' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 5.0' | |
# Use Uglifier as compressor for JavaScript assets | |
gem 'uglifier', '>= 1.3.0' | |
# See https://github.com/rails/execjs#readme for more supported runtimes | |
# gem 'mini_racer', platforms: :ruby | |
# Use CoffeeScript for .coffee assets and views | |
gem 'coffee-rails', '~> 4.2' | |
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks | |
gem 'turbolinks', '~> 5' | |
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | |
gem 'jbuilder', '~> 2.5' | |
# Use Redis adapter to run Action Cable in production | |
# gem 'redis', '~> 4.0' | |
# Use ActiveModel has_secure_password | |
# gem 'bcrypt', '~> 3.1.7' | |
# Use ActiveStorage variant | |
# gem 'mini_magick', '~> 4.8' | |
# Use Capistrano for deployment | |
# gem 'capistrano-rails', group: :development | |
# Reduces boot times through caching; required in config/boot.rb | |
gem 'bootsnap', '>= 1.1.0', require: false | |
gem 'capybara' | |
group :development, :test do | |
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | |
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] | |
gem 'rspec-rails', '~> 3.8' | |
end | |
gem 'rails-controller-testing', group: :test | |
group :development do | |
# Access an interactive console on exception pages or by calling 'console' anywhere in the code. | |
gem 'web-console', '>= 3.3.0' | |
gem 'listen', '>= 3.0.5', '< 3.2' | |
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | |
gem 'spring' | |
gem 'spring-watcher-listen', '~> 2.0.0' | |
end | |
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | |
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment