Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
re #88 - Add joomla.dev hostname and use phpmyadmin.joomla.dev/webgri…
Browse files Browse the repository at this point in the history
…nd.joomla.dev
  • Loading branch information
Steven Rombauts committed Mar 14, 2014
1 parent 6d995ae commit 8dfef43
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Go to the repository folder and create the box

Add the following line into your ***hosts file*** (in linux /etc/hosts, for other operating systems see: http://en.wikipedia.org/wiki/Hosts_(file)#Location_in_the_file_system)

33.33.33.58 webgrind phpmyadmin
33.33.33.58 joomla.dev webgrind.joomla.dev phpmyadmin.joomla.dev

There will be two folders created in that folder called www and projects.

Expand All @@ -44,6 +44,10 @@ Apache serves files from the www/ folder using the IP:

http://33.33.33.58/

If you have setup your hosts file correctly as shown above, you can now also access the default www/ folder at:

http://joomla.dev

It is advised to use virtual hosts for development. See below for our virtual host manager.

SSH
Expand All @@ -60,11 +64,7 @@ To create a site with the latest Joomla version, run:

joomla site:create testsite

Add the following line into your /etc/hosts file on your host machine:

33.33.33.58 testsite.dev

The newly installed site will be available at /var/www/testsite and testsite.dev after that.
The newly installed site will be available in the /testsite subfolder at http://joomla.dev/testsite after that. The files are located at /var/www/testsite.

You can choose the Joomla version or the sample data to be installed:

Expand All @@ -76,6 +76,11 @@ For more information and available options, see [Joomlatools console repository]

joomla --list

Note: The script also creates a new virtual host. If you add the following line into your /etc/hosts file on your host machine:

33.33.33.58 testsite.dev

you will now be able to go to http://testsite.dev to view your newly created site instead of http://joomla.dev/testsite.

Symlink your code into a Joomla installation
--------------------------------------------
Expand Down Expand Up @@ -117,7 +122,7 @@ MySQL

After you modify /etc/hosts as shown above you can use phpMyAdmin at

http://phpmyadmin
http://phpmyadmin.joomla.dev

You can also connect using any MySQL client with these details:

Expand Down Expand Up @@ -168,7 +173,7 @@ Webgrind

After you modify /etc/hosts as shown above go to

http://webgrind
http://webgrind.joomla.dev

SFTP
----
Expand Down
22 changes: 12 additions & 10 deletions puppet/manifests/default.pp
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@
}

apache::vhost { 'phpmyadmin':
server_name => 'phpmyadmin',
docroot => '/usr/share/phpmyadmin',
port => 80,
priority => '10',
require => Class['phpmyadmin'],
server_name => 'phpmyadmin',
serveraliases => 'phpmyadmin.joomla.dev',
docroot => '/usr/share/phpmyadmin',
port => 80,
priority => '10',
require => Class['phpmyadmin'],
}

class { 'mailcatcher': }
Expand All @@ -180,11 +181,12 @@
}

apache::vhost { 'webgrind':
server_name => 'webgrind',
docroot => '/usr/share/webgrind',
port => 80,
priority => '10',
require => Class['webgrind'],
server_name => 'webgrind',
serveraliases => 'webgrind.joomla.dev',
docroot => '/usr/share/webgrind',
port => 80,
priority => '10',
require => Class['webgrind'],
}

apache::vhost { 'default':
Expand Down

0 comments on commit 8dfef43

Please sign in to comment.