Skip to content

Commit

Permalink
Include version-number in imagecat
Browse files Browse the repository at this point in the history
Co-authored-by: Bess Sadler <bess@users.noreply.github.com>
  • Loading branch information
leefaisonr and bess committed Mar 22, 2023
1 parent 78665c4 commit 0e751ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@

set :deploy_to, '/opt/imagecat-rails'
# set :ssh_options, {verify_host_key: :never}

desc "Write the current version to public/version.txt"
task :write_version do
on roles(:app), in: :sequence do
within repo_path do
execute :tail, "-n1 ../revisions.log > #{release_path}/public/version.txt"
end
end
end
after "deploy:log_revision", "write_version"

0 comments on commit 0e751ce

Please sign in to comment.