mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Binaries / New configs from Rails 5.2 app:update
This commit is contained in:
parent
1747de8eb5
commit
7c7bcf4b41
7 changed files with 111 additions and 12 deletions
12
bin/setup
12
bin/setup
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
require 'pathname'
|
||||
require 'fileutils'
|
||||
include FileUtils
|
||||
|
||||
# path to your application root.
|
||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
||||
APP_ROOT = File.expand_path('..', __dir__)
|
||||
|
||||
def system!(*args)
|
||||
system(*args) || abort("\n== Command #{args} failed ==")
|
||||
|
@ -20,10 +20,10 @@ chdir APP_ROOT do
|
|||
# Install JavaScript dependencies if using Yarn
|
||||
# system('bin/yarn')
|
||||
|
||||
puts "\n== Copying sample files =="
|
||||
unless File.exist?('config/database.yml')
|
||||
system! 'cp config/database.yml.sample config/database.yml'
|
||||
end
|
||||
# puts "\n== Copying sample files =="
|
||||
# unless File.exist?('config/database.yml')
|
||||
# cp 'config/database.yml.sample', 'config/database.yml'
|
||||
# end
|
||||
|
||||
puts "\n== Preparing database =="
|
||||
system! 'bin/rails db:setup'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue