Joomla in a Box – A Vagrant box for local Joomla development

8,891 views

Published on

Joomla developers and agencies face the same challenges everyday. Testing their extensions against different Joomla versions, bugs that only happen in certain PHP versions, telling people "works on my machine" over and over again...

What if we didn't have to suffer all this? What if it took 5 seconds to set up a new Joomla site or 2 minutes to test a new PHP version? And what if all your coworkers had the exact same setup as you do?

In this presentation, we introduce Vagrant, a virtual machine manager, and walk through the benefits of using it for development. The slides take you through the different steps to setup a complete local Joomla environment in just minutes, install a site and install an extension from Git. At the end we also include information of the different productivity tools that are installed in the box.

If you develop with Joomla locally then this presentation is one you shouldn’t miss out on. Happy coding !

Published in: Technology
1 Comment
5 Likes
Statistics
Notes
  • Thanks for the link Marco, let us know your feedback and how we can further improve the box!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
8,891
On SlideShare
0
From Embeds
0
Number of Embeds
2,491
Actions
Shares
0
Downloads
37
Comments
1
Likes
5
Embeds 0
No embeds

No notes for slide

Joomla in a Box – A Vagrant box for local Joomla development

  1. 1. $ vagrant init joomlatools/box $ vagrant up
  2. 2. $ vagrant ssh # or open the web Terminal via http://joomla.box $ joomla site:create --sample-data=testing joomla3 $ joomla --list # for more commands $ joomla site:create --help # for help on a command http://developer.joomlatools.com/tools/console/commands.html
  3. 3. $ vagrant ssh $ cd /var/www/joomla3 $ composer require joomlatools/com_helloworld:0.0.3
  4. 4. $ cd Projects $ git clone https://github.com/joomlatools/joomla-com_helloworld.git
  5. 5. $ vagrant ssh $ joomla extension:symlink joomla3 joomla-com_helloworld http://joomla.box/joomla3/index.php?option=com_helloworld
  6. 6. $ vagrant ssh $ joomla versions
  7. 7. $ vagrant ssh $ joomla site:create --release=3.5.0-beta joomla35 http://joomla.box/joomla35
  8. 8. $ vagrant ssh $ box php:versions $ box php:use 5.4.18 $ box php:use 7.0.0RC6 http://joomla.dev/phpinfo
  9. 9. $ vagrant ssh $ box php:engine hhvm $ box php:engine zend http://joomla.dev/phpinfo
  10. 10. $ vagrant ssh $ box apc:clear http://joomla.box/apc
  11. 11. $ vagrant ssh $ box xdebug:enable
  12. 12. $ vagrant ssh $ box xdebug:profiler start $ box xdebug:profiler stop http://webgrind.joomla.box/
  13. 13. $ vagrant ssh $ box varnish:enable http://developer.joomlatools.com/tools/vagrant/commands/varnish.html
  14. 14. $ phpmetrics --report-html=/var/www/report.html /var/www/joomla
  15. 15. $ vagrant login $ vagrant share

×