deployer.org how to change releases' folder's name
Asked Answered
C

1

9

After I deploy by command to my server:

bin/dep deploy

In "releases" folder I have folders named liked 1, 2, 3, ...

How can I change it to timestamp, so after deploy command I'll get something like this 20160425120500 instead of 1

bin/dep --version
Deployer 6.0.5
Chong answered 17/1, 2018 at 8:19 Comment(0)
T
9

I`m not checked solution, but you can try this

set('release_name', function () {
    return (string) run('date +"%s"');
});
Totalitarianism answered 18/1, 2018 at 7:58 Comment(3)
Thank you very much for your help^^Chong
@MonTea, oh! Sure, it's just typo. Here one semicolonTotalitarianism
Alternative date +"%Y-%m-%d_%H-%M-%S"Passus

© 2022 - 2024 — McMap. All rights reserved.