diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
| commit | 9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch) | |
| tree | 8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /bin | |
| parent | 85a01e35274b8d4d4165a7b26bd7986e211246bb (diff) | |
| parent | 1853082fcd8c067390c246f9daa01a9b47387497 (diff) | |
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/bundle | 3 | ||||
| -rwxr-xr-x | bin/ci | 6 | ||||
| -rwxr-xr-x | bin/dev | 2 | ||||
| -rwxr-xr-x | bin/rails | 4 | ||||
| -rwxr-xr-x | bin/rake | 4 | ||||
| -rwxr-xr-x | bin/setup | 35 |
6 files changed, 54 insertions, 0 deletions
diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 0000000..66e9889 --- /dev/null +++ b/bin/bundle | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/usr/bin/env ruby | ||
| 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
| 3 | load Gem.bin_path('bundler', 'bundle') | ||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/usr/bin/env ruby | ||
| 2 | require_relative "../config/boot" | ||
| 3 | require "active_support/continuous_integration" | ||
| 4 | |||
| 5 | CI = ActiveSupport::ContinuousIntegration | ||
| 6 | require_relative "../config/ci.rb" | ||
| @@ -0,0 +1,2 @@ | |||
| 1 | #!/usr/bin/env ruby | ||
| 2 | exec "./bin/rails", "server", *ARGV | ||
diff --git a/bin/rails b/bin/rails new file mode 100755 index 0000000..efc0377 --- /dev/null +++ b/bin/rails | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | #!/usr/bin/env ruby | ||
| 2 | APP_PATH = File.expand_path("../config/application", __dir__) | ||
| 3 | require_relative "../config/boot" | ||
| 4 | require "rails/commands" | ||
diff --git a/bin/rake b/bin/rake new file mode 100755 index 0000000..4fbf10b --- /dev/null +++ b/bin/rake | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | #!/usr/bin/env ruby | ||
| 2 | require_relative "../config/boot" | ||
| 3 | require "rake" | ||
| 4 | Rake.application.run | ||
diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..81be011 --- /dev/null +++ b/bin/setup | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | #!/usr/bin/env ruby | ||
| 2 | require "fileutils" | ||
| 3 | |||
| 4 | APP_ROOT = File.expand_path("..", __dir__) | ||
| 5 | |||
| 6 | def system!(*args) | ||
| 7 | system(*args, exception: true) | ||
| 8 | end | ||
| 9 | |||
| 10 | FileUtils.chdir APP_ROOT do | ||
| 11 | # This script is a way to set up or update your development environment automatically. | ||
| 12 | # This script is idempotent, so that you can run it at any time and get an expectable outcome. | ||
| 13 | # Add necessary setup steps to this file. | ||
| 14 | |||
| 15 | puts "== Installing dependencies ==" | ||
| 16 | system("bundle check") || system!("bundle install") | ||
| 17 | |||
| 18 | # puts "\n== Copying sample files ==" | ||
| 19 | # unless File.exist?("config/database.yml") | ||
| 20 | # FileUtils.cp "config/database.yml.sample", "config/database.yml" | ||
| 21 | # end | ||
| 22 | |||
| 23 | puts "\n== Preparing database ==" | ||
| 24 | system! "bin/rails db:prepare" | ||
| 25 | system! "bin/rails db:reset" if ARGV.include?("--reset") | ||
| 26 | |||
| 27 | puts "\n== Removing old logs and tempfiles ==" | ||
| 28 | system! "bin/rails log:clear tmp:clear" | ||
| 29 | |||
| 30 | unless ARGV.include?("--skip-server") | ||
| 31 | puts "\n== Starting development server ==" | ||
| 32 | STDOUT.flush # flush the output before exec(2) so that it displays | ||
| 33 | exec "bin/dev" | ||
| 34 | end | ||
| 35 | end | ||
