- Add deploy.sh and releases_clear.php to project folder
- Set variables in deploy.sh:
repo, branch, path_user, path_composer, path_main
- Set variables in releases_clear.php:
$path_releases
- Run bash script in folder project for deploy:
bash deploy.sh
- Run php script for clear releases folders:
php releases_clear.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function homka() { | |
const authorization = "Bearer " + localStorage.getItem('authToken') | |
// localStorage.setItem('ebyshki-vorobuski', 0); | |
const startDate = new Date | |
function timeAgo(date) { | |
const secondsPast = (new Date() - date) / 1000; | |
if (secondsPast < 60) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Шаг 1: Генерируем пару ключей на локальной машине | |
ssh-keygen | |
# Шаг 2: Устанавливаем открытый ключ на удаленном сервере | |
ssh-copy-id -i ~/.ssh/id_rsa.pub UserName@RemoteServer | |
# Шаг 3: Добавляем секретный ключ в агент аутентификации на локальной машине | |
ssh-add |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/php/7.3/bin/php -f /path/to/artisan queue:work --tries=3 & |