Giter Club home page Giter Club logo

Comments (6)

jamesmoss avatar jamesmoss commented on September 15, 2024

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.

syropian avatar syropian commented on September 15, 2024

@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.

jamesmoss avatar jamesmoss commented on September 15, 2024

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.

syropian avatar syropian commented on September 15, 2024

@jamesmoss Cheers, that would work. Will keep an eye on this :)

from dandelion.

scttnlsn avatar scttnlsn commented on September 15, 2024

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.

syropian avatar syropian commented on September 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.