feat: include installation method in data to cw hub (#2831)

This commit is contained in:
Vishnu Narayanan
2021-08-16 23:35:00 +05:30
committed by GitHub
parent 0e4196c91a
commit 319412f6dc
5 changed files with 10 additions and 1 deletions

View File

@@ -70,6 +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"
RAILS_ENV=production bundle exec rake db:create
RAILS_ENV=production bundle exec rake db:reset