所以我试图安装一个新的拉拉维尔到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:xampphtdocsphalcon-tzglbootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocsphalcon-tzglbootstrapautoload.php on line 17
Fatal error: require(): Failed opening required 'C:xampphtdocsphalcon-tzglbootstrap/../vendor/autoload.php' (include_path='.;C:xamppphpPEAR') in C:xampphtdocsphalcon-tzglbootstrapautoload.php on line 17
我不知道我做错了什么,请帮忙!
运行composer install
以实际安装所有软件包并创建缺少的自动加载文件。