所以我尝试安装一个新的 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}
我将根更改为“/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
我不知道我做错了什么,请帮忙!