Skip to content

Commit 42d0ff5

Browse files
committed
small updates
1 parent e584e26 commit 42d0ff5

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

getting-started/bookshelf/Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ ruby ">= 2.5"
2020
gem "google-cloud-error_reporting"
2121
gem "google-cloud-firestore", "~> 2.0"
2222
gem "google-cloud-storage", "~> 1.10"
23-
gem "rails", "~> 5.2.3"
23+
gem "rails", "~> 7.0"
2424

2525
gem "jquery-rails"
26+
gem 'sprockets-rails', :require => 'sprockets/railtie'
27+
2628

2729
group :development, :test do
2830
# Call 'byebug' anywhere in the code to stop execution and get a debugger console

getting-started/bookshelf/bin/setup

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,25 @@
1414
# limitations under the License.
1515

1616
require "fileutils"
17+
include FileUtils
1718

1819
# path to your application root.
1920
APP_ROOT = File.expand_path "..", __dir__
2021

21-
def system! *args
22+
def system!(*args)
2223
system(*args) || abort("\n== Command #{args} failed ==")
2324
end
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"

getting-started/bookshelf/config/boot.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
ENV["BUNDLE_GEMFILE"] ||= File.expand_path "../Gemfile", __dir__
1515

1616
require "bundler/setup" # Set up gems listed in the Gemfile.
17-
require "bootsnap/setup" # Speed up boot time by caching expensive operations.

run/rails/tmp/.keep

Whitespace-only changes.

run/rails/tmp/pids/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)