Skip to content

Commit

Permalink
Merge pull request #61 from redBorder/bugfix/18751_fix_webui_ownership
Browse files Browse the repository at this point in the history
Change rb-rails ownership to webui after assets:precompile
  • Loading branch information
rgomezborder authored Oct 1, 2024
2 parents 442939d + eab76b2 commit 4e52599
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
pushd /var/www/rb-rails &>/dev/null
echo "### `date` - COMMAND: RAILS_ENV=production rake assets:precompile" &>>/var/www/rb-rails/log/install-redborder-assets.log
rvm ruby-2.7.5@web do env RAILS_ENV=production rake assets:precompile &>>/var/www/rb-rails/log/install-redborder-assets.log
chown webui:webui -R /var/www/rb-rails
popd &>/dev/null &>/dev/null
EOH
user 'root'
Expand Down Expand Up @@ -870,6 +871,7 @@
pushd /var/www/rb-rails &>/dev/null
echo "### `date` - COMMAND: RAILS_ENV=production rake assets:precompile" &>>/var/www/rb-rails/log/install-redborder-assets.log
rvm ruby-2.7.5@web do env RAILS_ENV=production rake assets:precompile &>>/var/www/rb-rails/log/install-redborder-assets.log
chown webui:webui -R /var/www/rb-rails
popd &>/dev/null &>/dev/null
EOH
user 'root'
Expand Down

0 comments on commit 4e52599

Please sign in to comment.