页面“容器初始化”与“Laradock”之间的差异
(页面间的差异)
跳到导航
跳到搜索
(创建页面,内容为“=os.init= <pre> echo 'deb http://mirrors.163.com/debian/ buster main non-free contrib deb http://mirrors.163.com/debian/ buster-updates main non-free contrib deb ht…”) |
|||
第1行: | 第1行: | ||
− | = | + | =Note= |
+ | laradock 是为 Docker 提供的完整 PHP 本地开发环境,和 Homestead 一样提供了一系列打包好(包括配置)的 Docker Image | ||
+ | |||
+ | 如果连外网pull非常慢 用8.8.4.4 就会快了 | ||
+ | =php-worker= | ||
+ | |||
+ | [[Php-worker]] | ||
+ | |||
+ | [[Php.ini修改ondocker]] | ||
+ | |||
<pre> | <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> | </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= | ||
+ | https://laradock.io/ | ||
+ | |||
+ | |||
+ | |||
+ | [https://blog.csdn.net/its_my_dream/article/details/77990482 Docker搭建Laravel开发环境] | ||
+ | |||
+ | [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]] |
2020年6月5日 (五) 08:47的版本
Note
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