Skip to content

Commit

Permalink
Add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
biow0lf committed Jul 14, 2023
1 parent 3f79d52 commit 128eeb0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bin/deploy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

require "bundler/setup"
require "sshkit"

include SSHKit::DSL

host = SSHKit::Host.new("[email protected]")

on host do |_|
within "/root/docker/evemonk-pghero" do
execute :docker, :compose, :pull
execute :docker, :compose, :down
execute :docker, :compose, "up -d"
end
end

0 comments on commit 128eeb0

Please sign in to comment.