Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Памятка для имеющих доступ к серверу #86

Open
SerafimArts opened this issue Sep 16, 2016 · 0 comments
Open
Labels

Comments

@SerafimArts
Copy link
Member

SerafimArts commented Sep 16, 2016

Быстрый деплой

  • cd /var/www/gitter && git pull origin master:master && composer dump-autoload && ./artisan cache:clear && ./artisan config:cache && ./artisan gitter:pool

Полный деплой

  • `cd /var/www/gitter && ./artisan down && git pull origin master:master && composer install && ./artisan cache:clear && ./artisan config:cache && ./artisan up && ./artisan gitter:pool``

Рестарт бота

  • cd /var/www/gitter && ./artisan gitter:pool

Рестарт сервера

  • service php7-fpm restart
  • service nginx restart

Обновление сертификата

  • cd /var/letsencrypt && php bin/acme issue -d karma.laravel.su -p /var/www/gitter/public -s letsencrypt

Обновление версии php

x.x.N -> x.x.M (например 7.0.0 -> 7.0.1)

  • cd /var/php7-installer
  • cat build.sh
  • Изменить строчку git checkout PHP-xxx на нужную ветку
  • ./build.sh
  • service php7-fpm restart
  • service nginx restart

x.N -> x.M (например 7.0 -> 7.1)

  • cd /var/php7-installer
  • cat build.sh
  • Изменить строчку git checkout PHP-xxx на нужную ветку
  • ./build.sh
  • cd ext/pecl-ev
  • git pull
  • make clean
  • phpize
  • ./configure
  • make
  • make install
  • service php7-fpm restart
  • service nginx restart
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant