Giter Club home page Giter Club logo

dployer's People

Contributors

gmsantos avatar guilhermeguitte avatar ravanscafi avatar rplansky avatar zizaco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dployer's Issues

Create new deploy tag version 1.1

@Zizaco and @GuilhermeGuitte:

I think that these recent pull requests (#6, #9 and #10) resolves our actual problems.I think we can create a new version of dployer bin and tag it with version 1.1:

Main changelog:

  • Added configuration file
  • Moved application and environment arguments to config file
  • Create events
  • Configurable scripts by event
  • Interactive mode
  • More Verbosity

What do you guys think?

  • Rebuild dployer bin
  • Update README.md file
  • Tag 1.1 version

Fix --interactive option

Even if you don't use this parameter when you run deploy command, dployer asks for confirmation before run every script.

Configuration file on root path of the project

Create a configuration file in the project base path to configure deploy process. The file should follow this structure:

{
    "application": "MyAwsomeApplication",
    "environment": "my-staging-env",
    "scripts": {
        "init": "composer dumpautoload",
        "another-random-event": [
            "echo 'Keep going...'", 
            "echo 'Almost there!'"
        ],
        "finish": "echo 'Nicely done! =)'"
    },
    "exclude-path": [
        "path/to/non-deployed-folder",
        "i-dont-want-to-deploy-this-file.log"
    ]
}

Note: even with application and environment keys in the configuration file, the deploy command should keep the possibility to pass this arguments as command parameters.

To do:

  • Create sample configuration file to test.
  • Create class to read config keys.
  • Remove required option from app and environment arguments in deploy command
  • Exclude paths in the exclude-path key before ZIP them.
  • Add support to dispatch events.
  • Create a class to listen the events and execute commands.
  • Apply key events in deploy process, i.e, init, finish, before-pack, after-version-deploy...

Create -V (--verbose) argument to deploy command

If deploy command is executed with --verbose argument, the command should display outputs from scripts that are configured in .dployer file

Note: Save -v (in lowercase) argument to display version in the future

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.