(Automatic Cybersecurity Training System)
- Клонируйте репозиторий
git clone https://github.com/evn88/ACTS.git - Скопируйте и переименуйте файл .env.example в .env, далее укажите ваши настройки для БД и вашего почтового сервера, через который будут отправляться сообщения.
composer installnpm installphp artisan key:generatephp artisan passport:keysphp artisan vendor:publish --tag=assets --forcephp artisan migratephp artisan db:seed- Приложение использует очереди и Supervisor https://laravel.ru/docs/v5/queues
- Установите Supervisor
sudo apt-get install supervisor - Файлы настроек Supervisor обычно находятся в папке /etc/supervisor/conf.d. Там вы можете создать любое количество файлов с настройками, по которым Supervisor поймёт, как отслеживать ваши процессы. Для работы аукциона, создадим файл laravel-worker-acts.conf, который запускает и наблюдает за процессом queue:work:
[program:laravel-worker-acts]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/[ПУТЬ ДО ПРИЛОЖЕНИЯ]/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
user=www-data
numprocs=4
redirect_stderr=true
stdout_logfile=/var/www/[ПУТЬ ДО ПРИЛОЖЕНИЯ]/storage/logs/worker.log
Подробнее о Supervisor читайте в его документации.
- После создания файла настроек вы можете обновить конфигурацию Supervisor и запустить процесс при помощи следующих команд:
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start laravel-worker:*
ACTS написан E & A Вершковы на платформе Laravel и выпущен под лицензией GNU AGPLv3. Подробности смотрите в файле License.
- Clone Repository
git clone https://github.com/evn88/ACTS.git - Copy and rename file .env.example to .env, then specify your settings for the database and your mail server through which messages will be sent.
composer installnpm installphp artisan key:generatephp artisan passport:keysphp artisan vendor:publish --tag=assets --forcephp artisan migratephp artisan db:seed- Application uses Queues and Supervisor https://laravel.ru/docs/v5/queues
- Install Supervisor
sudo apt-get install supervisor - Supervisor configuration files are usually located in the /etc/supervisor/conf.d folder. There you can create any number of settings files that Supervisor will understand how to track your processes. For the auction to work, create a laravel-worker-acts.conf file that launches and monitors the queue: work process:
[program:laravel-worker-acts]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/[APP PATH]/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
user=www-data
numprocs=4
redirect_stderr=true
stdout_logfile=/var/www/[APP PATH]/storage/logs/worker.log
Read more about Supervisor in his documentation.
13.After creating the settings file, you can update the Supervisor configuration and start the process with the following commands:
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start laravel-worker:*
ACTS is written by Vershkovs E & A on the Laravel framework and is released under the GNU AGPLv3 License. See the LICENSE file for details.

