Skip to content
「Laravel」The backend system for TVQhub 🗃
PHP HTML Vue
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
packages
public
resources
routes
storage
tests
.editorconfig
.env.example
.gitattributes
.gitignore
.styleci.yml
README.md
artisan
composer.json
composer.lock
package-lock.json
package.json
phpunit.xml
server.php
webpack.mix.js

README.md

Build Status Total Downloads Latest Stable Version License

Deploy Laravel

Create folders

sudo cp .env.example .env

Folder permissions

sudo chown :www-data app storage bootstrap -R
sudo chmod 775 app storage bootstrap -R

Install dependencies

sudo composer install --optimize-autoloader --no-dev
sudo npm install

Laravel Setup

php artisan key:generate
php artisan migrate

Config queue

php artisan queue:table

php artisan migrate

(.env) QUEUE_CONNECTION=database

sudo apt install supervisor
sudo service supervisor restart
cd /etc/supervisor/conf.d

sudo nano laravel-worker.conf

laravel-worker.conf

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/vagrant/code/ama/artisan queue:work --daemon --sleep=3 --tries=3 -vvv
autostart=true
autorestart=true
user=root
numprocs=1
redirect_stderr=true
stdout_logfile=/home/vagrant/code/ama/storage/logs/worker.log
sudo supervisorctl reread

sudo supervisorctl update

sudo supervisorctl status
You can’t perform that action at this time.