diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-11-25 18:18:44 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-11-25 18:18:44 +0200 |
commit | 40ff1318d29884e4d17e7e450d8a7633e5ac36a9 (patch) | |
tree | 80363a35c2bf62156678b351cbd0802021f9ba54 /bin | |
parent | 913b408c021d3a9e8b940f580e1e537ef6ed77fd (diff) | |
download | gitlab-ce-40ff1318d29884e4d17e7e450d8a7633e5ac36a9.tar.gz |
Rails update to 4.2.4
Diffstat (limited to 'bin')
-rwxr-xr-x[-rw-r--r--] | bin/ci/upgrade.rb | 0 | ||||
-rwxr-xr-x | bin/rails | 6 | ||||
-rwxr-xr-x | bin/rake | 9 | ||||
-rwxr-xr-x | bin/setup | 29 | ||||
-rwxr-xr-x[-rw-r--r--] | bin/upgrade.rb | 0 |
5 files changed, 33 insertions, 11 deletions
diff --git a/bin/ci/upgrade.rb b/bin/ci/upgrade.rb index aab4f60ec60..aab4f60ec60 100644..100755 --- a/bin/ci/upgrade.rb +++ b/bin/ci/upgrade.rb diff --git a/bin/rails b/bin/rails index 7feb6a30e69..5191e6927af 100755 --- a/bin/rails +++ b/bin/rails @@ -1,8 +1,4 @@ #!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -APP_PATH = File.expand_path('../../config/application', __FILE__) +APP_PATH = File.expand_path('../../config/application', __FILE__) require_relative '../config/boot' require 'rails/commands' @@ -1,7 +1,4 @@ #!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -require 'bundler/setup' -load Gem.bin_path('rake', 'rake') +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 00000000000..acdb2c1389c --- /dev/null +++ b/bin/setup @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +Dir.chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file: + + puts "== Installing dependencies ==" + system "gem install bundler --conservative" + system "bundle check || bundle install" + + # puts "\n== Copying sample files ==" + # unless File.exist?("config/database.yml") + # system "cp config/database.yml.sample config/database.yml" + # end + + puts "\n== Preparing database ==" + system "bin/rake db:setup" + + puts "\n== Removing old logs and tempfiles ==" + system "rm -f log/*" + system "rm -rf tmp/cache" + + puts "\n== Restarting application server ==" + system "touch tmp/restart.txt" +end diff --git a/bin/upgrade.rb b/bin/upgrade.rb index a5caecf8526..a5caecf8526 100644..100755 --- a/bin/upgrade.rb +++ b/bin/upgrade.rb |