MaybeFinance: small move to before cd
This commit is contained in:
parent
9bb41e2b79
commit
59ec15e08d
@ -45,11 +45,11 @@ function update_script() {
|
||||
curl -fsSL "https://github.com/maybe-finance/maybe/archive/refs/tags/v${RELEASE}.zip" -o /tmp/v"$RELEASE".zip
|
||||
unzip -q /tmp/v"$RELEASE".zip
|
||||
mv maybe-"$RELEASE" /opt/maybe
|
||||
RUBY_VERSION="$(cat /opt/maybe/.ruby-version)" RUBY_INSTALL_RAILS=false setup_rbenv_stack
|
||||
cd /opt/maybe
|
||||
rm ./config/credentials.yml.enc
|
||||
source ~/.profile
|
||||
$STD tar -xf "$BACKUP_FILE" --directory=/
|
||||
RUBY_VERSION="$(cat /opt/maybe/.ruby-version)" RUBY_INSTALL_RAILS=false setup_rbenv_stack
|
||||
$STD ./bin/bundle install
|
||||
$STD ./bin/bundle exec bootsnap precompile --gemfile -j 0
|
||||
$STD ./bin/bundle exec bootsnap precompile -j 0 app/ lib/
|
||||
|
@ -54,9 +54,9 @@ RELEASE=$(curl -s https://api.github.com/repos/maybe-finance/maybe/releases/late
|
||||
curl -fsSL "https://github.com/maybe-finance/maybe/archive/refs/tags/v${RELEASE}.zip" -o /tmp/v"$RELEASE".zip
|
||||
unzip -q /tmp/v"$RELEASE".zip
|
||||
mv maybe-"$RELEASE" /opt/maybe
|
||||
cd /opt/maybe
|
||||
RUBY_VERSION="$(cat /opt/maybe/.ruby-version)" RUBY_INSTALL_RAILS=false setup_rbenv_stack
|
||||
cp ./.env.example ./.env
|
||||
cd /opt/maybe
|
||||
cp /.env.example ./.env
|
||||
sed -i -e '/SELF_/a RAILS_ENV=production' \
|
||||
-e "s/secret-value/\"$(openssl rand -hex 64)\"/" \
|
||||
-e "/^SECRET_KEY/a RAILS_MASTER_KEY=\"$(openssl rand -hex 16)\"" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user