Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In die Doku aufnehmen #9

Closed
tbaddade opened this issue Sep 14, 2017 · 0 comments · Fixed by #74
Closed

In die Doku aufnehmen #9

tbaddade opened this issue Sep 14, 2017 · 0 comments · Fixed by #74

Comments

@tbaddade
Copy link
Member

default_stage

Wenn man dep deploy aufruft, greift der default_stage und nicht mehr alle Host .
Vorteil: Man deployed nicht durch Unachtsamkeit den Live-Server sondern nur die Testserver. Will man auch live deployen, muss man das immer explizit angeben dep deploy live

deploy.php

default_stage setzen:
set('default_stage', 'test');

im Host stage setzen (kann mehrfach gesetzt werden)

host('yakamara')
    ->stage('test')

host('preview')
    ->stage('test')

Best Practice

zu Info: dep deploy besteht nun aus 2 Parts, lokal vorbereiten und aufspielen:
https://github.com/yakamara/ydeploy/blob/master/deploy.php#L92-L95

die kann man auch einzeln ausführen.
dep build
und danach
dep release [host]

oder was ich manchmal mache:
dep deploy
(aufspielen auf Testserver gemäß default_stage)

dann testen, und wenn alles passt, den gleichen build, der lokal ja noch bereit liegt, auf live aufspielen:
dep release live

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant