File tree Expand file tree Collapse file tree 5 files changed +8
-11
lines changed
getting-started/bookshelf Expand file tree Collapse file tree 5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ ruby ">= 2.5"
2020gem "google-cloud-error_reporting"
2121gem "google-cloud-firestore" , "~> 2.0"
2222gem "google-cloud-storage" , "~> 1.10"
23- gem "rails" , "~> 5.2.3 "
23+ gem "rails" , "~> 7.0 "
2424
2525gem "jquery-rails"
26+ gem 'sprockets-rails' , :require => 'sprockets/railtie'
27+
2628
2729group :development , :test do
2830 # Call 'byebug' anywhere in the code to stop execution and get a debugger console
Original file line number Diff line number Diff line change 1414# limitations under the License.
1515
1616require "fileutils"
17+ include FileUtils
1718
1819# path to your application root.
1920APP_ROOT = File . expand_path ".." , __dir__
2021
21- def system! *args
22+ def system! ( *args )
2223 system ( *args ) || abort ( "\n == Command #{ args } failed ==" )
2324end
2425
25- FileUtils . chdir APP_ROOT do
26+ chdir APP_ROOT do
2627 # This script is a starting point to setup your application.
2728 # Add necessary setup steps to this file.
2829
2930 puts "== Installing dependencies =="
3031 system! "gem install bundler --conservative"
3132 system ( "bundle check" ) || system! ( "bundle install" )
3233
33- # puts "\n== Copying sample files =="
34- # unless File.exist?('config/database.yml')
35- # cp 'config/database.yml.sample', 'config/database.yml'
36- # end
37-
38- puts "\n == Preparing database =="
39- system! "bin/rails db:setup"
34+ # Install JavaScript dependencies if using Yarn
35+ # system('bin/yarn')
4036
4137 puts "\n == Removing old logs and tempfiles =="
4238 system! "bin/rails log:clear tmp:clear"
Original file line number Diff line number Diff line change 1414ENV [ "BUNDLE_GEMFILE" ] ||= File . expand_path "../Gemfile" , __dir__
1515
1616require "bundler/setup" # Set up gems listed in the Gemfile.
17- require "bootsnap/setup" # Speed up boot time by caching expensive operations.
You can’t perform that action at this time.
0 commit comments