diff bin/setup @ 459:07d6c6639adf

Upgrade to rails 5.2. RIP code style.
author nanaya <me@nanaya.pro>
date Sat, 14 Apr 2018 04:19:52 +0900
parents 68eb23b52864
children fd3078b4d355
line wrap: on
line diff
--- a/bin/setup	Sat Apr 14 04:19:29 2018 +0900
+++ b/bin/setup	Sat Apr 14 04:19:52 2018 +0900
@@ -1,10 +1,9 @@
 #!/usr/bin/env ruby
-require 'pathname'
 require 'fileutils'
 include FileUtils
 
 # path to your application root.
-APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
+APP_ROOT = File.expand_path('..', __dir__)
 
 def system!(*args)
   system(*args) || abort("\n== Command #{args} failed ==")
@@ -18,6 +17,9 @@
   system! 'gem install bundler --conservative'
   system('bundle check') || system!('bundle install')
 
+  # Install JavaScript dependencies if using Yarn
+  # system('bin/yarn')
+
   # puts "\n== Copying sample files =="
   # unless File.exist?('config/database.yml')
   #   cp 'config/database.yml.sample', 'config/database.yml'