İdeal WordPress Geliştirme Ortamı
Mustafa UYSAL
[email protected]
MampWampXampp
Zend Server...
vagrant upwww.vagrantup.com
Varying Vagrant Vagrants
https://github.com/Varying-Vagrant-Vagrants/VVV
Temel komutlar;
- vagrant up- vagrant halt- vagrant provision- vagrant ssh- vagrant reload- vagrant destroy
vagrant provision
● chef, puppet, shell● İlk “up” komutunda otomatik provision● Bize ne getiriyor?
Yeni Bir Site Tanımlamak
Web Serverpath/config/nginx-config/sites/siteadi.conf
MySQL Dumppath/database/backups
Yeni Bir Site Tanımlamak
Hostnamepath/www/vvv-hosts
Site Dizinipath/www/nginx_ayarindaki_deger
wp-config &
local-config
Plugins, plugins, plugins...
Kahrolsun “BAĞZI” Eklentiler
● 3.parti servislerle çalışan eklentiler pasifleştirilmeli
● Cron’a göre çalışan eklentiler
● Backup eklentileri...
Bazı durumlarda tam tersi
Faydalı “Gist” ler
● Otomatik Eklenti Aktifleştirmek için => https://gist.github.com/mustafauysal/2487dc1ff3eceff2804e
● Otomatik Eklenti Pasifleştirmek için=> https://gist.github.com/markjaquith/1044546
● wp-content/mu-plugins
● Kim?● Ne zaman?● Ne?● Neden?
WordPress’i kontrol altında tutmak
define( 'WP_AUTO_UPDATE_CORE', false );define( 'DISALLOW_FILE_EDIT' ,true);define( 'DISALLOW_FILE_MODS' ,true);
● Git● SVN● Mercurial...
Sürüm Kontrol Yazılımları
Git
● Hosted: Github, Bitbucket vs..● Hızlı● Dağıtık mimari● Daha az kaynak kullanması
.gitignore
● wp-config.php & local-config.php● Proje dosyaları● Cache dizinleri● sitemap (xml’e dikkat)
Deployhq
● deployhq.com● Github ve Bitbucket entegrasyonu● Tek tıkla rollback● Deploy öncesi önizleme● Deploy sonrası bildirimler
Beanstalkftploy
CapistranoCustom script
Uploads by Proxy
define('UBP_SITEURL', 'http://example-live.com/wordpress');
nginx conf
Nginx Rewritehttps://gist.github.com/mustafauysal/11269170
Nginx Proxy
Örnek: 10marifet.org
● Fork VVV => 10marifet-vagrant● Git● Deployhq