将Laravel项目上传到fortrabbit时出错

时间:2017-01-11 14:43:27

标签: laravel laravel-5 fortrabbit

所以我试着安装一个新的laravel到fortrabbit。但是,当我去网站时,它只会说"哎呀,看起来出了问题。"

我遵循了fortrabbit指令:

# 1. Use Composer to create a local Laravel project named like your App
composer create-project laravel/laravel --prefer-dist phalcon-tzgl
# this installs Laravel locally and will take a while

# 2. Change into the folder
cd phalcon-tzgl

# 3. Initialize a local Git repo
git init .

# 4. Add all files
git add -A

# 5. Commit files for the first time
git commit -m 'Initial'

# 6. Add fortrabbit as a remote
git remote add fortrabbit phalcon-tzgl.fuzg50672x0fi6xv@deploy.eu2.frbit.com:phalcon-tzgl.git

# 7. Push changes to fortrabbit
git push -u fortrabbit master
# this will install Laravel on remote and take another while
# the next deployments will be much faster

然后我更改.env文件:

APP_KEY=UlQ9WLW9UOELwhzKqtFStpbHKNKGdl82
APP_ENV=production
DB_DATABASE=${MYSQL_DATABASE}
DB_HOST=${MYSQL_HOST}
DB_USER=${MYSQL_USER}
DB_PASSWORD=${MYSQL_PASSWORD}
DB_PORT=${MYSQL_PORT}
DB_USERNAME=${MYSQL_USER} 

我将root更改为" / public"。

它没有用! 然后我

git clone phalcon-tzgl.*************@deploy.eu2.frbit.com:phalcon-tzgl.git

我从我的本地服务器尝试,我得到了这个

Warning: require(C:\xampp\htdocs\phalcon-tzgl\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\phalcon-tzgl\bootstrap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\phalcon-tzgl\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\phalcon-tzgl\bootstrap\autoload.php on line 17

我不知道我做错了什么,请帮忙!

1 个答案:

答案 0 :(得分:0)

运行composer install实际安装所有软件包并创建您丢失的自动加载文件。