Skip to content

Instantly share code, notes, and snippets.

@284km
Created March 17, 2018 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 284km/a1166df5e56401ada5da676780a09d97 to your computer and use it in GitHub Desktop.
Save 284km/a1166df5e56401ada5da676780a09d97 to your computer and use it in GitHub Desktop.
diff --git a/Gemfile b/Gemfile
index 9d19ebf..2f56cf4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -14,13 +14,6 @@ gem 'pg', '>= 0.18', '< 2.0'
 gem 'puma', '~> 3.7'
 # 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 'therubyracer', platforms: :ruby
-
-# 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 ActiveModel has_secure_password
diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js
index b16e53d..5918193 100644
--- a/app/assets/config/manifest.js
+++ b/app/assets/config/manifest.js
@@ -1,3 +1,2 @@
 //= link_tree ../images
-//= link_directory ../javascripts .js
 //= link_directory ../stylesheets .css
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
deleted file mode 100644
index 46b2035..0000000
--- a/app/assets/javascripts/application.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// This is a manifest file that'll be compiled into application.js, which will include all the files
-// listed below.
-//
-// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
-// vendor/assets/javascripts directory can be referenced here using a relative path.
-//
-// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
-// compiled file. JavaScript code in this file should be added after the last require_* statement.
-//
-// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
-// about supported directives.
-//
-//= require rails-ujs
-//= require turbolinks
-//= require_tree .
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 38f5f6c..9fe443f 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -4,8 +4,7 @@
     <title>GraphqlRubySample</title>
     <%= csrf_meta_tags %>
 
-    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
-    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
+    <%= stylesheet_link_tag    'application', media: 'all' %>
   </head>
 
   <body>
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 46763fd..0b0100a 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -23,8 +23,7 @@ Rails.application.configure do
   # Apache or NGINX already handles this.
   config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
 
-  # Compress JavaScripts and CSS.
-  config.assets.js_compressor = :uglifier
+  # Compress CSS.
   # config.assets.css_compressor = :sass
 
   # Do not fallback to assets pipeline if a precompiled asset is missed.
diff --git a/config/secrets.yml b/config/secrets.yml
index 6ae7703..2e4a3b1 100644
--- a/config/secrets.yml
+++ b/config/secrets.yml
@@ -18,10 +18,10 @@
 # Environmental secrets are only available for that specific environment.
 
 development:
-  secret_key_base: ea5bfa172da66c2552db66602558a2fcf128e536e4d6ee4559a8741940f0e718ee69d555f74efdd151bdde98dabb3a9743cd645fe0a9184fc3c1c92e1ddc5399
+  secret_key_base: 2d1b5264587a5b99305fd118d0ad4d643d232e0795ebc0ac325a581fb7d6b88365b1307283a907aaba6678145d9972fa86592821ed17cc65f6c5352153ced6bc
 
 test:
-  secret_key_base: 495044a9b20148728ea92d499617b9ca183dd05fa6ca853cac5fcbf503d768d2304d69c1de1e7b327424c8c06b6aa6813ff0200c3fc59022eb36cf268e59f6ec
+  secret_key_base: 6595e8d8d1fbf21cb310f16ecf25edf5b29768668543075873002498532bfabb4bc3f9e060fbfa5bb28ef5793cf294f2bfeda8e7d9b834e0b0140c808ab2c01e
 
 # Do not keep production secrets in the unencrypted secrets file.
 # Instead, either read values from the environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment