“Laradock”的版本间的差异
跳到导航
跳到搜索
(→Note) |
|||
(未显示同一用户的14个中间版本) | |||
第1行: | 第1行: | ||
+ | =Note= | ||
+ | vim .env CHANGE_SOURCE 改为true #改源很快 | ||
+ | |||
+ | |||
+ | laradock 是为 Docker 提供的完整 PHP 本地开发环境,和 Homestead 一样提供了一系列打包好(包括配置)的 Docker Image | ||
+ | |||
+ | 如果连外网pull非常慢 用8.8.4.4 就会快了 | ||
+ | |||
+ | =php-worker= | ||
+ | |||
+ | [[Php-worker]] | ||
+ | |||
+ | [[Php.ini修改ondocker]] | ||
+ | |||
+ | <pre> | ||
+ | |||
+ | es01服务器 /data/docker-for-services/php-worker/supervisord.conf 文件增加以下配置 | ||
+ | files = /var/www/api.sns.com/supervisord.d/production1.*.conf /var/www/apistatistical.com/supervise/production1.*.conf | ||
+ | |||
+ | 然后检查是否生效,去到php-worker容器 查看/etc/supervisor/supervisord.conf 这个文件 | ||
+ | </pre> | ||
+ | |||
+ | =composer= | ||
+ | <pre> | ||
+ | ** php composer ins | ||
+ | composer install | ||
+ | php artisan migrate | ||
+ | php artisan db:seed | ||
+ | php artisan storage:link | ||
+ | |||
+ | mkdir bootstrap/cache | ||
+ | mkdir storage/framework | ||
+ | mkdir storage/framework/cache | ||
+ | mkdir storage/framework/views | ||
+ | mkdir storage/framework/sessions | ||
+ | </pre> | ||
+ | |||
+ | ==php-worker== | ||
+ | |||
+ | |||
+ | |||
+ | [https://segmentfault.com/a/1190000018966783 laradock 使用 php-worker 配置 supervisor] | ||
+ | |||
+ | =crontab= | ||
+ | [[Laradock cron定时任务]] | ||
+ | |||
+ | [[Laradocker使用cron定时任务故障]] | ||
+ | |||
+ | =other= | ||
+ | [https://blog.csdn.net/qq_37035946/article/details/99854126 Laradock 更改 mysql 版本及其重建] | ||
+ | |||
+ | [https://blog.csdn.net/hoooooly/article/details/80629442 laradock mysql安装失败 Please provide a source image with `from` prior to commit] | ||
=see also= | =see also= | ||
第9行: | 第61行: | ||
[https://blog.csdn.net/f2130793/article/details/82179716 Laradock配置安装踩坑] | [https://blog.csdn.net/f2130793/article/details/82179716 Laradock配置安装踩坑] | ||
+ | |||
+ | [https://blog.csdn.net/f2130793/article/details/82179716?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase Laradock配置安装踩坑] | ||
+ | |||
+ | [https://blog.csdn.net/qq_37035946/article/details/99843937?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.nonecase Laradock安装、.env配置、nginx配置] | ||
+ | |||
+ | [https://laradock-docs.linganmin.cn/zh/getting-started/ laradock 入门] | ||
+ | |||
+ | [https://segmentfault.com/a/1190000017205616 Laradock 使用说明 ---- 不是很详细] | ||
+ | |||
+ | |||
+ | [https://blog.csdn.net/mr_legeek/article/details/78635124 lara-dock安装与使用] | ||
[[category:php]] [[category:Container]] | [[category:php]] [[category:Container]] |
2021年10月22日 (五) 07:09的最新版本
Note
vim .env CHANGE_SOURCE 改为true #改源很快
laradock 是为 Docker 提供的完整 PHP 本地开发环境,和 Homestead 一样提供了一系列打包好(包括配置)的 Docker Image
如果连外网pull非常慢 用8.8.4.4 就会快了
php-worker
es01服务器 /data/docker-for-services/php-worker/supervisord.conf 文件增加以下配置 files = /var/www/api.sns.com/supervisord.d/production1.*.conf /var/www/apistatistical.com/supervise/production1.*.conf 然后检查是否生效,去到php-worker容器 查看/etc/supervisor/supervisord.conf 这个文件
composer
** php composer ins composer install php artisan migrate php artisan db:seed php artisan storage:link mkdir bootstrap/cache mkdir storage/framework mkdir storage/framework/cache mkdir storage/framework/views mkdir storage/framework/sessions
php-worker
laradock 使用 php-worker 配置 supervisor
crontab
other
laradock mysql安装失败 Please provide a source image with `from` prior to commit
see also