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:
Henne Vogelsang 2019-01-30 01:35:01 +01:00
parent 9b97ecdb58
commit 2a7acf7369
4 changed files with 78 additions and 123 deletions

View file

@ -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