GithubHelp home page GithubHelp logo

Recipes Do's and Don'ts about recipes HOT 5 CLOSED

deployphp avatar deployphp commented on July 19, 2024
Recipes Do's and Don'ts

from recipes.

Comments (5)

antonmedv avatar antonmedv commented on July 19, 2024

I think too, what 3rd-party recipes should has no effect on.
Imagine i has Symfony app based on recipe/symfony.php, but i want to use rsync. Now if i require this recipe - my deploy will be broken. Sad =(.

I think recipes has to be separated into two category:

  1. Recipe with useful tasks (as library)
  2. Recipe which provide workflow (as workflow)

cachetool.php, slack.php, and other is 1 type.
recipe/common.php and derivative is 2 type.

rsync.php recipe in #10 now is 2 type too, but must be separated into two:

  • rsync as useful tasks,
  • shared hosting workflow.

from recipes.

johnny-bit avatar johnny-bit commented on July 19, 2024

sooo I went ahead and changed rsync.php into type 1. now rsync is a useful task 😃

Now... to shared hosting workflow!

from recipes.

johnny-bit avatar johnny-bit commented on July 19, 2024

So to sum up some suggestions from #10 and #12:

  • use short file names. Eg ftp instead of ftp_upload_to_server_recype_by_me
  • prefix tasks with recipe name. if You have task named mytest in myrecipe it should be named myrecipe:mytest
  • use global settings keyed by your recipe name. If You have one setting, name it the same as Your recipe. If You have multiple settings, use associative array
  • use environment variables prefixed by Your recipe name. If You have environment varaible named better_path in recipe myrecipe, call it myrecipe_better_path

did I miss something?

from recipes.

gordalina avatar gordalina commented on July 19, 2024

that looks about right :)

from recipes.

antonmedv avatar antonmedv commented on July 19, 2024

Good 👍

from recipes.

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.