Skip to content

Script @auto-scripts was called via post-install-cmd #99

@infografik

Description

@infografik

Code

$ ./bin/console deploy -v
[...]
Copying the updated code to the new release directory
[user@domain] Executing command: (export APP_ENV=prod; cd /dir/releases/20190919133916 && cp -RPp /dir/repo/* /dir/releases/20190919133916)
----- START -----
Here is mistake: cp -RPp /dir/repo/* /dir/releases/20190919133916)
The * character does not copy files starting with a dot. Please add:
&& cp -R /dir/repo/.e* /dir/releases/20190919133916) && cp -R /dir/repo/.g* /dir/releases/20190919133916)
Only .* cannot be added due to the presence of '..' in the folder.
----- STOP -----
[...]
Installing Composer dependencies
[user@domain] Executing command: (export APP_ENV=prod; cd /dir/releases/20190919133916 && /usr/local/bin/composer install --no-dev --prefer-dist --no-interaction --quiet)
| err :: Script @auto-scripts was called via post-install-cmd
[ERROR] Cancelling the deployment and reverting the changes
[...]
In Process.php line 256:
[Symfony\Component\Process\Exception\ProcessFailedException] The command "ssh -A user@domain '(export APP_ENV=prod; cd /dir/releases/20190919133916 && /usr/local/bin/composer install --no-dev --prefer-dist --no-interaction --quiet)'" failed.
Exit Code: 255(Unknown error)
[...]
Error Output:
================
Script @auto-scripts was called via post-install-cmd
[...]

Error reason

In /dir/releases/201909133916:
assets composer.json config package.json public symfony.lock tests var webpack.config.js bin composer.lock package-lock.json phpunit.xml.dist src templates translations vendor yarn.lock

There are no files starting with a dot (files are present in /dir/releases/20190919133916):
.env .env-test .git .gitignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions