Skip to content
This repository

console command now automatically cds to the current deploy dir #13

Merged
merged 1 commit into from almost 2 years ago

2 participants

Scott Bronson TJ Holowaychuk
Scott Bronson

A similar change to issue #12. Makes my life more convenient!

TJ Holowaychuk visionmedia merged commit a43c8e0 into from June 19, 2012
TJ Holowaychuk visionmedia closed this June 19, 2012
TJ Holowaychuk
Owner

thanks! I agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 19, 2012
Scott Bronson console command now automatically cds to the current deploy dir 111d96d
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  bin/deploy
5  bin/deploy
@@ -133,9 +133,10 @@ run() {
133 133
 #
134 134
 
135 135
 console() {
  136
+  local path="`config_get path`/current"
136 137
   local shell="`ssh_command`"
137  
-  echo $shell
138  
-  exec $shell
  138
+  echo $shell -t "cd $path; bash --login"
  139
+  exec $shell -t "cd $path; bash --login"
139 140
 }
140 141
 
141 142
 #
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.