Skip to content

Commit 4641525

Browse files
authored
Merge pull request #68 from tenforwardconsulting/bs-fix-cap-paths
fix missing execjs runtime error
2 parents dcb16e4 + f1001f5 commit 4641525

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This is a [changelog](https://keepachangelog.com/en/1.0.0/).
55
This project attempts to follow [semantic versioning](https://semver.org/)
66

77
## Unreleased
8+
9+
## 1.6.6
10+
* Fix to paths for remote cap tasks that caused execjs to fail in some circumstances
11+
812
## 1.6.5
913
* Add Application Decision Record generator
1014

lib/jefferies_tube/capistrano/rails.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252

5353
def run_interactively(command)
5454
port = host.port || 22
55-
puts "ssh #{host.user}@#{host} -p #{port} -t 'cd #{deploy_to}/current; #{command}'"
56-
exec "ssh #{host.user}@#{host} -p #{port} -t 'cd #{deploy_to}/current; #{command}'"
55+
puts %Q(ssh #{host.user}@#{host} -p #{port} -t '/bin/bash -l -c "cd #{deploy_to}/current; #{command}"')
56+
exec %Q(ssh #{host.user}@#{host} -p #{port} -t '/bin/bash -l -c "cd #{deploy_to}/current; #{command}"')
5757
end
5858

5959
def rails_env

lib/jefferies_tube/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'open-uri'
22

33
module JefferiesTube
4-
VERSION = "1.6.5"
4+
VERSION = "1.6.6"
55

66
def self.latest_rubygems_version
77
JSON.parse(URI.parse("https://rubygems.org/api/v1/versions/jefferies_tube/latest.json").read)["version"]

0 commit comments

Comments
 (0)