mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fixup INSTALL.md
- add a big fat warning - Do not mentioned the deprecated docker setup anymore - Fixup docker-compose production setup
This commit is contained in:
parent
9b97ecdb58
commit
2a7acf7369
4 changed files with 78 additions and 123 deletions
|
|
@ -3,16 +3,13 @@
|
|||
namespace :db do
|
||||
desc 'Bootstrap the database for the current RAILS_ENV (create, setup & seed if the database does not exist)'
|
||||
task bootstrap: :environment do
|
||||
puts 'Bootstrapping the database...'
|
||||
begin
|
||||
# Only do this if the database does not exist...
|
||||
Rake::Task['db:version'].invoke
|
||||
# rubocop:disable Style/RescueStandardError
|
||||
rescue
|
||||
# rubocop:enable Style/RescueStandardError
|
||||
if ActiveRecord::Base.connection.tables.empty?
|
||||
puts 'Bootstrapping the database...'
|
||||
Rake::Task['db:create'].invoke
|
||||
Rake::Task['db:setup'].invoke
|
||||
Rake::Task['db:seed'].invoke
|
||||
else
|
||||
puts 'Database exists, skipping bootstrap...'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue