aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/_common.sh2
-rw-r--r--scripts/install2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 89ace8a..df631ad 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -162,7 +162,7 @@ ynh_psql_dump_db() {
ynh_psql_create_user() {
user="$1"
pwd="$2"
- sudo --login --user=postgres psql -c"CREATE USER $user WITH PASSWORD '$pwd';" postgres
+ sudo --login --user=postgres psql -c"CREATE USER $user WITH PASSWORD '$pwd' CREATEDB;" postgres
}
# Drop a user
diff --git a/scripts/install b/scripts/install
index 90a8dfc..22abeff 100644
--- a/scripts/install
+++ b/scripts/install
@@ -222,7 +222,7 @@ sed -i "s@#SMTP_OPENSSL_VERIFY_MODE=peer@SMTP_OPENSSL_VERIFY_MODE=none@g" "${fin
$final_path/live/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test --quiet
yarn install --production --no-progress --non-interactive --silent
echo "SAFETY_ASSURED=1">> .env.production
- RAILS_ENV=production $final_path/live/bin/bundle exec rails db:setup --quiet
+ RAILS_ENV=production $final_path/live/bin/bundle exec rails db:migrate --quiet
RAILS_ENV=production $final_path/live/bin/bundle exec rails assets:precompile --quiet
INSTALL
)