From ece62b9eb3e2f3995715c32608f1de91d98a22be Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 29 Nov 2023 23:20:31 -0500 Subject: Rails engine no longer needed --- rails/test/dummy/bin/rails | 4 ---- rails/test/dummy/bin/rake | 4 ---- rails/test/dummy/bin/setup | 33 --------------------------------- 3 files changed, 41 deletions(-) delete mode 100755 rails/test/dummy/bin/rails delete mode 100755 rails/test/dummy/bin/rake delete mode 100755 rails/test/dummy/bin/setup (limited to 'rails/test/dummy/bin') diff --git a/rails/test/dummy/bin/rails b/rails/test/dummy/bin/rails deleted file mode 100755 index efc0377..0000000 --- a/rails/test/dummy/bin/rails +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -APP_PATH = File.expand_path("../config/application", __dir__) -require_relative "../config/boot" -require "rails/commands" diff --git a/rails/test/dummy/bin/rake b/rails/test/dummy/bin/rake deleted file mode 100755 index 4fbf10b..0000000 --- a/rails/test/dummy/bin/rake +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require_relative "../config/boot" -require "rake" -Rake.application.run diff --git a/rails/test/dummy/bin/setup b/rails/test/dummy/bin/setup deleted file mode 100755 index ec47b79..0000000 --- a/rails/test/dummy/bin/setup +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env ruby -require "fileutils" - -# path to your application root. -APP_ROOT = File.expand_path("..", __dir__) - -def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") -end - -FileUtils.chdir APP_ROOT do - # This script is a way to set up or update your development environment automatically. - # This script is idempotent, so that you can run it at any time and get an expectable outcome. - # Add necessary setup steps to this file. - - puts "== Installing dependencies ==" - system! "gem install bundler --conservative" - system("bundle check") || system!("bundle install") - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # FileUtils.cp "config/database.yml.sample", "config/database.yml" - # end - - puts "\n== Preparing database ==" - system! "bin/rails db:prepare" - - puts "\n== Removing old logs and tempfiles ==" - system! "bin/rails log:clear tmp:clear" - - puts "\n== Restarting application server ==" - system! "bin/rails restart" -end -- cgit 1.4.1