use correct bundle during install & update
This commit is contained in:
parent
d56376274e
commit
bab8b01625
@ -42,9 +42,9 @@ function update_script() {
|
|||||||
export RAILS_ENV=production
|
export RAILS_ENV=production
|
||||||
export BUNDLE_DEPLOYMENT=1
|
export BUNDLE_DEPLOYMENT=1
|
||||||
export BUNDLE_WITHOUT=development
|
export BUNDLE_WITHOUT=development
|
||||||
$STD bundle install
|
$STD ./bin/bundle install
|
||||||
$STD bundle exec bootsnap precompile --gemfile -j 0
|
$STD ./bin/bundle exec bootsnap precompile --gemfile -j 0
|
||||||
$STD bundle exec bootsnap precompile -j 0 app/ lib/
|
$STD ./bin/bundle exec bootsnap precompile -j 0 app/ lib/
|
||||||
export SECRET_KEY_BASE_DUMMY=1 && $STD ./bin/rails assets:precompile
|
export SECRET_KEY_BASE_DUMMY=1 && $STD ./bin/rails assets:precompile
|
||||||
unset SECRET_KEY_BASE_DUMMY
|
unset SECRET_KEY_BASE_DUMMY
|
||||||
msg_ok "Updated Sure"
|
msg_ok "Updated Sure"
|
||||||
|
|||||||
@ -27,16 +27,16 @@ fetch_and_deploy_gh_release "Sure" "we-promise/sure" "tarball" "latest" "/opt/su
|
|||||||
PG_VERSION="$(sed -n '/postgres:/s/[^[:digit:]]*//p' /opt/sure/compose.example.yml)" setup_postgresql
|
PG_VERSION="$(sed -n '/postgres:/s/[^[:digit:]]*//p' /opt/sure/compose.example.yml)" setup_postgresql
|
||||||
PG_DB_NAME=sure_production PG_DB_USER=sure_user setup_postgresql_db
|
PG_DB_NAME=sure_production PG_DB_USER=sure_user setup_postgresql_db
|
||||||
RUBY_VERSION="$(cat /opt/sure/.ruby-version)" RUBY_INSTALL_RAILS=false setup_ruby
|
RUBY_VERSION="$(cat /opt/sure/.ruby-version)" RUBY_INSTALL_RAILS=false setup_ruby
|
||||||
$STD rbenv --init && source ~/.bashrc
|
$STD rbenv init && source ~/.bashrc
|
||||||
|
|
||||||
msg_info "Building Sure"
|
msg_info "Building Sure"
|
||||||
cd /opt/sure
|
cd /opt/sure
|
||||||
export RAILS_ENV=production
|
export RAILS_ENV=production
|
||||||
export BUNDLE_DEPLOYMENT=1
|
export BUNDLE_DEPLOYMENT=1
|
||||||
export BUNDLE_WITHOUT=development
|
export BUNDLE_WITHOUT=development
|
||||||
$STD bundle install
|
$STD ./bin/bundle install
|
||||||
$STD bundle exec bootsnap precompile --gemfile -j 0
|
$STD ./bin/bundle exec bootsnap precompile --gemfile -j 0
|
||||||
$STD bundle exec bootsnap precompile -j 0 app/ lib/
|
$STD ./bin/bundle exec bootsnap precompile -j 0 app/ lib/
|
||||||
export SECRET_KEY_BASE_DUMMY=1 && $STD ./bin/rails assets:precompile
|
export SECRET_KEY_BASE_DUMMY=1 && $STD ./bin/rails assets:precompile
|
||||||
unset SECRET_KEY_BASE_DUMMY
|
unset SECRET_KEY_BASE_DUMMY
|
||||||
msg_ok "Built Sure"
|
msg_ok "Built Sure"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user