标签:相同 work hang queue 初始化 translate cgi create detail
git clone git@xxxx.git
cd xxx
git checkout dev
git pull
cd src
chmod -R 755 public/uploads
chmod -R 755 storage
cd src
composer install --optimize-autoloader --no-dev
cd src
cp .env.test .env
cd src
php artisan migrate
php artisan db:seed
crontab -e
* * * * * php path/src/artisan schedule:run >> path/src/storage/logs/crontab.log 2>&1
:wq
service crond restart
[program:queue-qly-test-email]
process_name=%(program_name)s_%(process_num)02d
command=php path/src/artisan queue:work --queue=email --sleep=3 --daemon
autostart=true
autorestart=true
numprocs=1
stdout_logfile=path/src/storage/logs/queue_email.log
stderr_logfile=NONE
user=nginx
[program:queue-qly-test]
process_name=%(program_name)s_%(process_num)02d
command=php path/src/artisan queue:work --sleep=3 --daemon
autostart=true
autorestart=true
numprocs=2
stdout_logfile=path/src/storage/logs/queue.log
stderr_logfile=NONE
user=nginx
listen 80;
server_name woaiwohui.com;
root "path\src\public";
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
`updated_at` bigint(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '更新时间',
/**
* 状态 已禁用
*/
const STATUS_DISABLED = -1;
/**
* 状态 正常
*/
const STATUS_NORMAL = 1;
/**
* 状态
*/
const STATUS = [
self::STATUS_DISABLED => '已禁用',
self::STATUS_NORMAL => '正常',
];
`deleted_date` timestamp NULL DEFAULT NULL COMMENT '删除时间',
self::where('id', $id)->delete(); //删除用户
self::where('id', $id)->withTrashed(); //显示所有数据
self::where('id', $id)->onlyTrashed(); //显示删除数所
self::where('id', $id)->restore(); //还原数据
cd src
composer install
cd src
php artisan make:migration add_users_table --table=users
php artisan make:migration change_users_table --table=users
php artisan make:migration create_users_table --create=users
php artisan migrate
php artisan migrate:rollback
php artisan migrate:reset
php artisan migrate:refresh
cd src
php artisan db:seed
cd src
composer dump-autoload
cd src
composer dump-autoload --optimize
勿使用下划线。
使用大驼峰写法。
使用小驼峰
标签:相同 work hang queue 初始化 translate cgi create detail
原文地址:https://www.cnblogs.com/dennylau/p/12383424.html