diff --git a/Dota_on_Rails/Gemfile b/Dota_on_Rails/Gemfile index 042665b..aa5ecef 100644 --- a/Dota_on_Rails/Gemfile +++ b/Dota_on_Rails/Gemfile @@ -18,6 +18,11 @@ group :development do gem 'pry-rails' end +group :production do + gem 'rails_12factor' + gem 'pg' +end + # Use SCSS for stylesheets gem 'sass-rails', '~> 5.0' # Use Uglifier as compressor for JavaScript assets @@ -29,27 +34,6 @@ gem 'coffee-rails', '~> 4.1.0' gem 'jquery-rails' # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' - - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' -end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/Dota_on_Rails/Gemfile.lock b/Dota_on_Rails/Gemfile.lock index 95bbc4f..617fe2b 100644 --- a/Dota_on_Rails/Gemfile.lock +++ b/Dota_on_Rails/Gemfile.lock @@ -61,8 +61,6 @@ GEM autoprefixer-rails (>= 5.0.0.1) sass (>= 3.2.19) builder (3.2.2) - byebug (4.0.5) - columnize (= 0.9.0) coderay (1.1.0) coffee-rails (4.1.0) coffee-script (>= 2.2.0) @@ -71,7 +69,6 @@ GEM coffee-script-source execjs coffee-script-source (1.9.1.1) - columnize (0.9.0) daemons (1.2.2) debug_inspector (0.0.2) erubis (2.7.0) @@ -85,9 +82,6 @@ GEM activesupport (>= 4.1.0) hashie (3.4.1) i18n (0.7.0) - jbuilder (2.2.13) - activesupport (>= 3.0.0, < 5) - multi_json (~> 1.2) jquery-rails (4.0.3) rails-dom-testing (~> 1.0) railties (>= 4.2.0) @@ -114,6 +108,7 @@ GEM omniauth-steam (1.0.3) multi_json omniauth-openid + pg (0.18.1-x86-mingw32) pry (0.10.1-x86-mingw32) coderay (~> 1.1.0) method_source (~> 0.8.1) @@ -146,14 +141,17 @@ GEM rails-deprecated_sanitizer (>= 1.0.1) rails-html-sanitizer (1.0.2) loofah (~> 2.0) + rails_12factor (0.0.3) + rails_serve_static_assets + rails_stdout_logging + rails_serve_static_assets (0.0.4) + rails_stdout_logging (0.0.3) railties (4.2.1) actionpack (= 4.2.1) activesupport (= 4.2.1) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) rake (10.4.2) - rdoc (4.2.0) - json (~> 1.4) ruby-openid (2.7.0) sass (3.4.13) sass-rails (5.0.3) @@ -162,9 +160,6 @@ GEM sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (~> 1.1) - sdoc (0.4.1) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) slop (3.6.0) sprockets (3.0.1) rack (~> 1.0) @@ -189,11 +184,6 @@ GEM uglifier (2.7.1) execjs (>= 0.3.0) json (>= 1.8.0) - web-console (2.1.2) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) win32console (1.3.2-x86-mingw32) PLATFORMS @@ -204,19 +194,17 @@ DEPENDENCIES better_errors binding_of_caller bootstrap-sass - byebug coffee-rails (~> 4.1.0) dota! - jbuilder (~> 2.0) jquery-rails omniauth-steam + pg pry-rails rails (= 4.2.1) + rails_12factor sass-rails (~> 5.0) - sdoc (~> 0.4.0) sqlite3 thin turbolinks tzinfo-data uglifier (>= 1.3.0) - web-console (~> 2.0) diff --git a/Dota_on_Rails/Procfile b/Dota_on_Rails/Procfile new file mode 100644 index 0000000..ca35301 --- /dev/null +++ b/Dota_on_Rails/Procfile @@ -0,0 +1 @@ +web: bundle exec rails server thin -p $PORT -e $RACK_ENV diff --git a/Dota_on_Rails/README.md b/Dota_on_Rails/README.md new file mode 100644 index 0000000..4c996c2 --- /dev/null +++ b/Dota_on_Rails/README.md @@ -0,0 +1,8 @@ +Source code for the []() article on +SitePoint, +created by Ilya Bodrov ([radiant-wind.com](http://radiant-wind.com)). + +[Working demo](). + + + diff --git a/Dota_on_Rails/README.rdoc b/Dota_on_Rails/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Dota_on_Rails/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app.