Comments (6)
I see this issue over and over again, when script ssh commands. I'd love to hear an explanation why. Simple avoidance is to replace '~' with "$HOME" when parsing configuration.
from deploy.
What doesn't work
$ deploy development setup
Warning: Identity file ~/.ssh/id_dsa.pub not accessible: No such file or directory.
$ cat deploy.conf
[development]
key ~/.ssh/id_dsa.pub
user mehul
What works
$ cat deploy.conf
[development]
key /home/mehul/.ssh/id_dsa.pub
user mehul
$ deploy development setup
Enter passphrase for key '/home/mehul/.ssh/id_dsa.pub':
from deploy.
This is how bash works. As soon as a tilde has been quoted, i.e., '~', it will not be expanded. Usually one bypasses this by using $HOME
instead.
One can expand tilde by using eval
, but usually one want to avoid this. See http://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html for more information.
from deploy.
Is there a solution for that? Both ~
and $HOME
are not working
from deploy.
Nothing?
from deploy.
@micky2be I created a pull request of pm2-deploy to solve the same problem, if you're interested. Unitech/pm2-deploy#81
from deploy.
Related Issues (18)
- a source link under source directory, strange? HOT 4
- fatal: fetch --all does not take a repository argument HOT 2
- Git diff HOT 3
- git for-each-ref fails in zsh HOT 2
- github deploy key
- how to support svn?
- Directories badly created HOT 2
- Errant "{shared" folder HOT 1
- more generic deployer HOT 1
- security implications using ssh -A HOT 1
- Deploy to multiple hosts? HOT 1
- Tutorial on Windows? HOT 4
- Config/Settings File HOT 3
- Testing ssh connection
- SHARED env variable in post-deploy hook is blank HOT 2
- pre-deploy hook fails on "cd $path/current" the first time HOT 1
- tarball support HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deploy.