pm2 start artisan --name laravel-worker --interpreter php -- queue:work --daemon
https://hazaveh.net/2018/01/run-and-monitor-laravel-queue-using-pm2/
pm2 start artisan --name laravel-worker --interpreter php -- queue:work --daemon
https://hazaveh.net/2018/01/run-and-monitor-laravel-queue-using-pm2/
| server { | |
| root /var/www/html/example.com/example-project-directory/dist; | |
| index index.html index.htm index.nginx-debian.html; | |
| server_name example.com www.example.com; | |
| location / { | |
| try_files $uri $uri/ /index.html; | |
| } | |
| } |
| server { | |
| listen 50; | |
| listen 9999; | |
| listen [::]:50; | |
| listen [::]:9999; | |
| root /usr/share/phpmyadmin/; | |
| index index.php index.html index.htm index.nginx-debian.html; | |
| location / { |
server {
listen 80;
listen [::]:80;
root /var/www/html/example.com/{project_dir_name}/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
location / {
sudo mkdir -p /var/www/html/domain_name
sudo mkdir -p /var/www/html/beta.swayiltd.com
sudo chown -R $USER:$USER /var/www/html/beta.swayiltd.com
cd /var/www/html/beta.swayiltd.com
git clone https://github.com/masiur/sway.git && cd sway && composer update
sudo cp .env.example .env && nano .env
php artisan migrate --seed
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
sudo nano /etc/nginx/sites-available/beta.swayiltd.com
Frist run this migrations :
php artisan queue:table
php artisan queue:failed-table
php artisan migrate
Frist run this migrations :
php artisan queue:table
php artisan queue:failed-table
php artisan migrate
| <script> | |
| function showToaster(type) { | |
| setTimeout(function() { | |
| toastr.options = { | |
| closeButton: true, | |
| progressBar: false, | |
| positionClass: "toast-bottom-right", | |
| showMethod: 'slideDown', | |
| timeOut: 3000 | |
| }; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.5.1/css/bulma.css"> | |
| <script src="vue.js"></script> | |
| <style type="text/css"> | |
| body { | |
| padding-top: 40px; |