use*_*337 6 laravel-4 laravel-forge
我正在尝试使用Laravel Forge部署Laravel PHP项目.我已正确连接到github上的我的存储库.但是,当我点击部署时,如果我去网站的公共IP,我只看到:
"No input file specified."
Run Code Online (Sandbox Code Playgroud)
在页面上.
我不知道为什么会出现这种行为.
如果我转到最新的部署日志,我会看到:
/home/forge/.forge/provision-433327.sh: line 1: cd: /home/forge/default/laravel: No such file or directory
fatal: Not a git repository (or any of the parent directories): .git
Composer could not find a composer.json file in /home/forge
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
Could not open input file: artisan
Run Code Online (Sandbox Code Playgroud)
但是,我的laravel文件夹中有一个composer.json文件....
有任何想法吗?先感谢您.
看起来 /home/forge/default/laravel 目录不存在。您可以 ssh 登录并验证该目录是否存在吗?
这些是默认 forge 部署脚本运行的命令:
cd /home/forge/default
git pull origin master
composer install
php artisan migrate --force
Run Code Online (Sandbox Code Playgroud)
看起来您的部署脚本正在导航到/home/forge/default/laravel。
| 归档时间: |
|
| 查看次数: |
2592 次 |
| 最近记录: |