Comments (6)
I think this would be great too; obviously you couldn't do it if you were deploying via FTP.
I reckon keep it simple, just one entry in the config, a path to an executable script on the remote that will get fired after deploy.
from dandelion.
@jamesmoss Yes, this would be awesome (I use SFTP so I'm all good). How would you set the script up so it could be executed by Dandelion, but not by visiting the script in the browser (if for example your script is a PHP script)? Is that possible with file permissions, or would you use some sort of auth token?
from dandelion.
I'd recommend storing it outside of your web root (just like you should with any other PHP or sensitive files). This depends on how you've set up your server and dandelions config.
from dandelion.
@jamesmoss Cheers, that would work. Will keep an eye on this :)
from dandelion.
I think this is beyond the scope of Dandelion. If you need to run remote commands then you might think about running dandelion deploy
as part of a larger deployment script:
#!/bin/bash
dandelion deploy
ssh my-server "make build"
Is there any advantage in having Dandelion run these remote commands?
from dandelion.
@scttnlsn Hey Scott, thanks for replying. It was mostly to keep everything under one deploy command, but I do realize the need to keep Dandelion lightweight and simple. I actually ended up writing my own Bash script that handles all aspects of my deploy through a JSON config file (sort of inspired by Dandelion 😄 ).
I'll close this off for now. Cheers!
from dandelion.
Related Issues (20)
- `+': no implicit conversion of Fixnum into String (TypeError) HOT 2
- Semi-random closed stream (IOError) on SFTP upload HOT 2
- Dandelion is doing nothing HOT 2
- Specify Dev and Live server HOT 1
- Changing Permissions HOT 3
- Windows install issue HOT 2
- ASCII-8BIT to UTF-8 Encoding Error When Transferring PNG HOT 2
- Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text. HOT 1
- Problems deploying to PHP 7 server HOT 2
- undefined symbol: rb_intern2 HOT 5
- macOS High Sierra installation HOT 10
- Not working with ruby 2.5.0 on deploy using sftp HOT 2
- Error trying to install dandelion HOT 5
- Gem install on macos Mojave gives compilation error HOT 1
- Updating to 0.5.4 HOT 2
- macOS Catalina HOT 2
- Net::SFTP::StatusException HOT 1
- FTPS deploy issue HOT 3
- Any good replacement? HOT 2
- Asking for password on non-sudo SSH user HOT 1
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 dandelion.