在虚拟主机中部署OLAINDEX #441
nidoze
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
有兴趣的可以尝试。
方案一:在docker中安装后打包
环境检查:检查虚拟主机配置,使用phpinfo()确认所需拓展是否已开启,记录虚拟主机文件目录
本地安装:在本地创建与主机完全相同的文件目录进行安装,这里使用docker
docker pull lorisleiva/laravel-docker:7.4docker run -dit --name==olaindex -v olaindex-volume:/home lorisleiva/laravel-docker:7.4 /bin/bashtar -zcvf olaindex.tar.gz htdocs/项目入口设置:复制/public.htaccess至根目录,修改其中的 Handle Front Controller 部分
方案二:手动配置
1.虚拟空间中上传源码,安装依赖
2.参数APP_KEY的设置
openssl rand --base64 32.env.example为.env,.env文件中APP_KEY字段添加密钥,值为base64:xxxxxxxxxxxxxx3.数据库的设置,sql文件路径/storage/install/data/olaindex.sql
4.项目入口设置
参考
Beta Was this translation helpful? Give feedback.
All reactions