Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

deployer.org how to change releases' folder's name

Tags:

php-deployer

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
like image 737
whitesiroi Avatar asked Jan 17 '18 08:01

whitesiroi


1 Answers

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

set('release_name', function () {
    return (string) run('date +"%s"');
});
like image 59
pudov.maxim Avatar answered Oct 03 '22 15:10

pudov.maxim