Skip to content

Commit

Permalink
fix to symlink chrome executable
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Jun 27, 2024
1 parent c648527 commit 7242ad4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@
desc 'Install Chromium for Puppeteer'
task :chrome_install do
on roles(:app), wait: 1 do
unless Dir.exist?("#{release_path}/.cache/puppeteer/chrome")
execute "cd #{release_path} && CHROME_PATH=$(npx puppeteer browsers install chrome@stable) && ln -s $(echo $CHROME_PATH | awk '{print $2}') ./bin/chrome"
execute "cd #{release_path} && CHROME_PATH=$(npx puppeteer browsers install chrome@stable) && ln -s $(echo $CHROME_PATH | awk '{print $2}') ./bin/chrome"

# Add step to clean up old versions and just always run this on each deploy
# Check to see if we can peg the version if we need to or at least lock it
# to a major version
end
# Add step to clean up old versions and just always run this on each deploy
# Check to see if we can peg the version if we need to or at least lock it
# to a major version
end
end

Expand Down

0 comments on commit 7242ad4

Please sign in to comment.