chore: Update installation env value for linux script (#3005)

This commit is contained in:
Vishnu Narayanan
2021-09-14 12:59:22 +05:30
committed by GitHub
parent 11cbc4d952
commit 2c381d726d
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ sed -i -e '/POSTGRES_HOST/ s/=.*/=localhost/' .env
sed -i -e '/POSTGRES_USERNAME/ s/=.*/=chatwoot/' .env
sed -i -e "/POSTGRES_PASSWORD/ s/=.*/=$pg_pass/" .env
sed -i -e '/RAILS_ENV/ s/=.*/=$RAILS_ENV/' .env
echo -en "\nINSTALLATION_ENV=LINUX_SCRIPT" >> ".env"
echo -en "\nINSTALLATION_ENV=linux_script" >> ".env"
RAILS_ENV=production bundle exec rake db:create
RAILS_ENV=production bundle exec rake db:reset

View File

@@ -70,7 +70,7 @@ sed -i -e '/POSTGRES_HOST/ s/=.*/=localhost/' .env
sed -i -e '/POSTGRES_USERNAME/ s/=.*/=chatwoot/' .env
sed -i -e "/POSTGRES_PASSWORD/ s/=.*/=$pg_pass/" .env
sed -i -e '/RAILS_ENV/ s/=.*/=$RAILS_ENV/' .env
echo -en "\nINSTALLATION_ENV=LINUX_SCRIPT" >> ".env"
echo -en "\nINSTALLATION_ENV=linux_script" >> ".env"
RAILS_ENV=production bundle exec rake db:create
RAILS_ENV=production bundle exec rake db:reset