Deployer: Failed to require deployer recipes

Created on 15 Mar 2016  路  2Comments  路  Source: deployphp/deployer

| Q | A |
| --- | --- |
| Issue Type | Bug |
| Deployer Version | 3.0.11 |
| Local Machine OS | Ubuntu 14.04 |
| Remote Machine OS | Ubuntu 14.04 |

Content

Deployer fail to load recipe. Can you help me to solve?

Steps to reproduce

1 Install deployer as described in documentation
2 create a file deploy.php
3 run "dep" command

Content of deploy.php

require ('recipe/wordpress.php');

Output log

PHP Fatal error: require(): Failed opening required 'recipe/wordpress.php' (include_path='phar:///usr/local/bin/dep/bin/../:phar:///usr/local/bin/dep/vendor/phpseclib/phpseclib/phpseclib:.:/usr/share/php:/usr/share/pear') in /home/httpd/abc/www/deploy.php on line 5
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/dep:0
PHP 2. require() /usr/local/bin/dep:4
PHP 3. require() phar:///usr/local/bin/dep/bin/dep:58

bug

Most helpful comment

Solved replacing require with require_once!

All 2 comments

The same with composer template using the phar.

[Deployer\Initializer\Exception\ResourceNotFoundException]                                                                 
  Not found resource file "phar:///usr/local/bin/dep/src/Initializer/Template/../../Resources/templates/composer.php.dist".

Solved replacing require with require_once!

Was this page helpful?
0 / 5 - 0 ratings