mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Revert unnessecary updates to binaries
This commit is contained in:
parent
e040ac6a45
commit
43200f68de
5 changed files with 16 additions and 19 deletions
14
bin/setup
14
bin/setup
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env ruby
|
||||
require 'fileutils'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'pathname'
|
||||
include FileUtils
|
||||
|
||||
# path to your application root.
|
||||
APP_ROOT = File.expand_path('..', __dir__)
|
||||
APP_ROOT = Pathname.new File.expand_path('../../', __dir__)
|
||||
|
||||
def system!(*args)
|
||||
system(*args) || abort("\n== Command #{args} failed ==")
|
||||
|
@ -20,10 +22,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')
|
||||
# cp 'config/database.yml.sample', 'config/database.yml'
|
||||
# end
|
||||
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/rails db:setup'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue