Skip to content

Instantly share code, notes, and snippets.

@bilalyilmax
Last active November 19, 2022 12:04
Show Gist options
  • Save bilalyilmax/7205c2c36f677c370d5207bbd97c1067 to your computer and use it in GitHub Desktop.
Save bilalyilmax/7205c2c36f677c370d5207bbd97c1067 to your computer and use it in GitHub Desktop.
Symfony 2 Güncelleme

Hosting kullanıcısıyla ssh'a bağlanıp, Symfony dizinine gir;

Github'dan güncel kodların çekilmesi

eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
git pull origin master

Eğer yeni php kütüphanesi eklenmiş ise; (çok nadir gerekir)

COMPOSER_MEMORY_LIMIT=-1 composer install

Veritabanı Güncellemesi Gerekiyorsa; (Veritabanında güncelleme yapıldıysa gerekir)

php app/console doctrine:schema:update --force

Css/Js Paketlerinde değişiklik varsa;

php app/console assets:install
php app/console assetic:dump

Önbelleğin temizlenmesi;

php app/console cache:clear --env=prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment