SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
JAKARTA WORDPRESS
MEETUP #9
Local WordPress Development With VVV
WHO AM I?
My Name is Ivan Kristianto

Jakarta WordPress Meetup Organizer

WordPress Core Contributor

WordPress Plugin Author and Contributor

WordCamp Organizer
BEFORE WE START
Please visit our website: 

https://wp-id.org

Please join our Facebook
group:

https://www.facebook.com/
groups/WordPressDevID/

Please join our Slack:

https://chat.wp-id.org
OK, LET’S START
VVV 2 JUST RELEASED!
WHY USE VVV?
The XAMPP or MAMP? It’s limited
and complex setup for WordPress
development.
Ready out of the box, customized
and built for WordPress development
It has everythingYou need for
WordPress Development
A recommended setup for
WordPress Developer and for
WordPressVIP.
WHAT IS INCLUDED?
Nginx: The Web Server

MariaDB 10.1.x (drop-in replacement for MySQL): Database Server

php-fpm 7.0.x: Well You know it, to run PHP

WP-CLI: WordPress Command Line Tools

Memcached: Memory Caching System

PHPUnit: To Unit Test your code

Composer: Dependency Manager for PHP

NodeJs: Server-side Javascript environment

Mailcatcher: Catch mail and servers
SETTING UP VVV
1. Download & Install VirtualBox and Vagrant

2. Install vagrant host updater: 

vagrant plugin install vagrant-hostsupdater
3.Install vagrant triggers: 

vagrant plugin install vagrant-triggers
4. Clone VVV: 

git clone git://github.com/Varying-Vagrant-Vagrants/VVV.git vvv
5. Startup VVV: 

vagrant up
6. Get a cup of coffee, and listen to your favorite music! It will take a while to finish.
SETTING A NEW SITE
I recommend to setup a new site for each project You
work, for example: localdomain.dev

Setting up a new site is “tricky” at this time. We need a
workaround a little

I recommend to use: Variable VVV ( https://github.com/
bradp/vv )

Let’s create a new site.
WP-CLI IS THE BEST
WP-CLI is ready out of the box

It take sometime to learn, but when You know it, It is faster for
development

To use WP-CLI:

vagrant ssh

cd /srv/www/<yoursite>/htdocs

wp —version

Checkout WP-CLI available command: 

http://wp-cli.org/commands/
DEBUGGING WITH XDEBUG
Still using var_dump to debug your code? Let’s take debugging to
another level!

Debugging in WordPress is never been easier using XDebug

You can trace your code execution and do profiling as well

Setup your XDebug with PHPStorm

How to setup click here

Demo
CATCH EMAIL WITH
MAILCATCHER
Most of the time your website will send email. And to
debug it from your local env, you need to catch those
emails. This is what Mailcatcher for.

Go to: http://vvv.dev:1080

Just try to send any email, and You will see it will catch
there.

Demo
MORE VVV INSTALLED
PACKAGES
Git

Subversion

Phpmyadmin

Memcached

Webgrind

Grunt-CLI

PhpMemcachedAdmin

Etc..
–Ivan Kristianto
“HappyVVV!”

Mais conteúdo relacionado

Mais procurados

Web development-work space
Web development-work spaceWeb development-work space
Web development-work space
chawlan
 
How to create a WordPress not understanding WordPress, so more on the headles...
How to create a WordPress not understanding WordPress, so more on the headles...How to create a WordPress not understanding WordPress, so more on the headles...
How to create a WordPress not understanding WordPress, so more on the headles...
Krzysztof (Chris) Ozog
 

Mais procurados (20)

Next generation WordPress developement... today
Next generation WordPress developement... todayNext generation WordPress developement... today
Next generation WordPress developement... today
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
 
WordPress Local Environments VVV
WordPress Local Environments   VVVWordPress Local Environments   VVV
WordPress Local Environments VVV
 
GlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.orgGlotPress aka translate.wordpress.org
GlotPress aka translate.wordpress.org
 
WordPress security 101 - WP Turku Meetup 2.2.2017
WordPress security 101 - WP Turku Meetup 2.2.2017WordPress security 101 - WP Turku Meetup 2.2.2017
WordPress security 101 - WP Turku Meetup 2.2.2017
 
Time's Important - Let Task Management Save Yours
Time's Important - Let Task Management Save YoursTime's Important - Let Task Management Save Yours
Time's Important - Let Task Management Save Yours
 
Improving WordPress Performance: Xdebug and PHP profiling
Improving WordPress Performance: Xdebug and PHP profilingImproving WordPress Performance: Xdebug and PHP profiling
Improving WordPress Performance: Xdebug and PHP profiling
 
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
Modern Web Applications Utilizing HTML5 (Dev Con TLV 06-2013)
 
Modern Web Application Development Workflow - EclipseCon US 2014
Modern Web Application Development Workflow - EclipseCon US 2014Modern Web Application Development Workflow - EclipseCon US 2014
Modern Web Application Development Workflow - EclipseCon US 2014
 
WordPress security 101 - WP Jyväskylä Meetup 21.3.2017
WordPress security 101 - WP Jyväskylä Meetup 21.3.2017WordPress security 101 - WP Jyväskylä Meetup 21.3.2017
WordPress security 101 - WP Jyväskylä Meetup 21.3.2017
 
WordPress.org & Optimizing Security for your WordPress sites
WordPress.org & Optimizing Security for your WordPress sitesWordPress.org & Optimizing Security for your WordPress sites
WordPress.org & Optimizing Security for your WordPress sites
 
Building a community of Open Source intranet users
Building a community of Open Source intranet usersBuilding a community of Open Source intranet users
Building a community of Open Source intranet users
 
Debugging WordPress Core and Plugins!
Debugging WordPress Core and Plugins!Debugging WordPress Core and Plugins!
Debugging WordPress Core and Plugins!
 
WordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and VagrantWordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and Vagrant
 
Weebly login
Weebly loginWeebly login
Weebly login
 
Debugging and Profiling in WordPress: What is My Site Doing?
Debugging and Profiling in WordPress: What is My Site Doing?Debugging and Profiling in WordPress: What is My Site Doing?
Debugging and Profiling in WordPress: What is My Site Doing?
 
Web development-work space
Web development-work spaceWeb development-work space
Web development-work space
 
WP-CLI For The Win
WP-CLI For The WinWP-CLI For The Win
WP-CLI For The Win
 
How to create a WordPress not understanding WordPress, so more on the headles...
How to create a WordPress not understanding WordPress, so more on the headles...How to create a WordPress not understanding WordPress, so more on the headles...
How to create a WordPress not understanding WordPress, so more on the headles...
 
First steps of programming with php
First steps of programming with phpFirst steps of programming with php
First steps of programming with php
 

Semelhante a Jakarta WordPress Meetup #9: Introducing VVV 2

Semelhante a Jakarta WordPress Meetup #9: Introducing VVV 2 (20)

Local development with vvv jon trujillo
Local development with vvv   jon trujilloLocal development with vvv   jon trujillo
Local development with vvv jon trujillo
 
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
 
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
 
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezDevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
 
Madison PHP 2015 - DevOps For Small Teams
Madison PHP 2015 - DevOps For Small TeamsMadison PHP 2015 - DevOps For Small Teams
Madison PHP 2015 - DevOps For Small Teams
 
Presentation wordpress.pptx
Presentation wordpress.pptxPresentation wordpress.pptx
Presentation wordpress.pptx
 
ZendCon 2015 - DevOps for Small Teams
ZendCon 2015 - DevOps for Small TeamsZendCon 2015 - DevOps for Small Teams
ZendCon 2015 - DevOps for Small Teams
 
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the Cloudphp[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
 
DevOps For Small Teams
DevOps For Small TeamsDevOps For Small Teams
DevOps For Small Teams
 
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
 
WordPress Biratnagar Meetup #1Wordpress Installation : By Sajjal Neupane
WordPress Biratnagar Meetup #1Wordpress Installation : By Sajjal NeupaneWordPress Biratnagar Meetup #1Wordpress Installation : By Sajjal Neupane
WordPress Biratnagar Meetup #1Wordpress Installation : By Sajjal Neupane
 
simple basic wordpress ppt .pptx
simple basic wordpress ppt .pptxsimple basic wordpress ppt .pptx
simple basic wordpress ppt .pptx
 
Wordpress customer support
Wordpress customer support Wordpress customer support
Wordpress customer support
 
Advanced WordPress Tooling: By InstaWP.com
Advanced WordPress Tooling: By InstaWP.comAdvanced WordPress Tooling: By InstaWP.com
Advanced WordPress Tooling: By InstaWP.com
 
937079
937079937079
937079
 
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
ZendCon 2015 - Laravel Forge: Hello World to Hello ProductionZendCon 2015 - Laravel Forge: Hello World to Hello Production
ZendCon 2015 - Laravel Forge: Hello World to Hello Production
 
Installing Wordpress Locally with XAMPP
Installing Wordpress Locally with XAMPPInstalling Wordpress Locally with XAMPP
Installing Wordpress Locally with XAMPP
 
Midwest PHP 2017 DevOps For Small team
Midwest PHP 2017 DevOps For Small teamMidwest PHP 2017 DevOps For Small team
Midwest PHP 2017 DevOps For Small team
 
Developing web apps
Developing web appsDeveloping web apps
Developing web apps
 
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...
WordCamp Atlanta -  April 15 2018 - dev team workflow and processes with word...WordCamp Atlanta -  April 15 2018 - dev team workflow and processes with word...
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Jakarta WordPress Meetup #9: Introducing VVV 2

  • 1. JAKARTA WORDPRESS MEETUP #9 Local WordPress Development With VVV
  • 2. WHO AM I? My Name is Ivan Kristianto Jakarta WordPress Meetup Organizer WordPress Core Contributor WordPress Plugin Author and Contributor WordCamp Organizer
  • 3. BEFORE WE START Please visit our website: 
 https://wp-id.org Please join our Facebook group:
 https://www.facebook.com/ groups/WordPressDevID/ Please join our Slack:
 https://chat.wp-id.org
  • 4.
  • 6. VVV 2 JUST RELEASED!
  • 7. WHY USE VVV? The XAMPP or MAMP? It’s limited and complex setup for WordPress development. Ready out of the box, customized and built for WordPress development It has everythingYou need for WordPress Development A recommended setup for WordPress Developer and for WordPressVIP.
  • 8. WHAT IS INCLUDED? Nginx: The Web Server MariaDB 10.1.x (drop-in replacement for MySQL): Database Server php-fpm 7.0.x: Well You know it, to run PHP WP-CLI: WordPress Command Line Tools Memcached: Memory Caching System PHPUnit: To Unit Test your code Composer: Dependency Manager for PHP NodeJs: Server-side Javascript environment Mailcatcher: Catch mail and servers
  • 9. SETTING UP VVV 1. Download & Install VirtualBox and Vagrant 2. Install vagrant host updater: 
 vagrant plugin install vagrant-hostsupdater 3.Install vagrant triggers: 
 vagrant plugin install vagrant-triggers 4. Clone VVV: 
 git clone git://github.com/Varying-Vagrant-Vagrants/VVV.git vvv 5. Startup VVV: 
 vagrant up 6. Get a cup of coffee, and listen to your favorite music! It will take a while to finish.
  • 10.
  • 11. SETTING A NEW SITE I recommend to setup a new site for each project You work, for example: localdomain.dev Setting up a new site is “tricky” at this time. We need a workaround a little I recommend to use: Variable VVV ( https://github.com/ bradp/vv ) Let’s create a new site.
  • 12. WP-CLI IS THE BEST WP-CLI is ready out of the box It take sometime to learn, but when You know it, It is faster for development To use WP-CLI:
 vagrant ssh
 cd /srv/www/<yoursite>/htdocs
 wp —version Checkout WP-CLI available command: 
 http://wp-cli.org/commands/
  • 13. DEBUGGING WITH XDEBUG Still using var_dump to debug your code? Let’s take debugging to another level! Debugging in WordPress is never been easier using XDebug You can trace your code execution and do profiling as well Setup your XDebug with PHPStorm How to setup click here Demo
  • 14. CATCH EMAIL WITH MAILCATCHER Most of the time your website will send email. And to debug it from your local env, you need to catch those emails. This is what Mailcatcher for. Go to: http://vvv.dev:1080 Just try to send any email, and You will see it will catch there. Demo