Update to the VM

17 views
Skip to first unread message

Rob Allen

unread,
Nov 12, 2014, 3:26:57 AM11/12/14
to joindin-d...@googlegroups.com
Hi all,

I’ve just merged a change to the Vagrant VM (https://github.com/joindin/joindin-vm) so that it no longer forwards the websites to port 8080 on localhost and the mysql to port 3307; instead has its own private IP address of 10.223.175.44.


If you are currently using joindin-vm and update to the latest version you will need to change the following:

1. vagrant destroy and then vagrant up

2. Update your hosts file for the dev.joind.in sites:

10.223.175.44 dev.joind.in api.dev.joind.in web2.dev.joind.in


To access the websites:

web1: http://dev.joind.in/
web2: http://web2.dev.joind.in/
api: http://api.dev.joind.in/

To access MySQL:

mysql -u joindin -h 10.223.175.44 -P 3306 -ppassword joindin


If you come across any problems, please either create an issue at https://joindin.jira.com or drop us an email on this list.


Regards,

Rob...

Lorna Mitchell

unread,
Nov 18, 2014, 2:41:09 PM11/18/14
to joindin-d...@googlegroups.com
Just updated mine and it worked perfectly.  Everything came up nicely on the new URLs after I edited my hosts file.

Thanks for taking the time to make this happen, people :)

Lorna



--
You received this message because you are subscribed to the Google Groups "joindin-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joindin-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Lorna Mitchell
http://lornajane.net


lornajane

unread,
Nov 19, 2014, 4:48:22 PM11/19/14
to joindin-d...@googlegroups.com
I spoke a bit too soon!  Having used the VM again today, I notice a couple of things:
 - it adds slightly the wrong /etc/hosts entry, this needs to be edited.  But it does this every time I "vagrant up" and then removes my corrected host entry when I halt.  Can this only happen on provision, please?
 - I had an existing config.php file for web1 and it had the port 8080 specified in its base URL settings, so anyone with an existing VM may find they need to edit their config files.

I'm not really sure how to fix the hosts thing but maybe someone can help us out?

Lorna

To unsubscribe from this group and stop receiving emails from it, send an email to joindin-developers+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Michael Maclean

unread,
Nov 19, 2014, 5:16:12 PM11/19/14
to joindin-d...@googlegroups.com
We fixed that before, I think - I remember it from last year's PHPNW.  I'll have a look tomorrow. 
To unsubscribe from this group and stop receiving emails from it, send an email to joindin-develop...@googlegroups.com.

Rob Allen

unread,
Nov 20, 2014, 9:56:27 AM11/20/14
to joindin-d...@googlegroups.com

> On 19 Nov 2014, at 21:48, lornajane <lorna.m...@gmail.com> wrote:
>
> I spoke a bit too soon! Having used the VM again today, I notice a couple of things:
> - it adds slightly the wrong /etc/hosts entry, this needs to be edited. But it does this every time I "vagrant up" and then removes my corrected host entry when I halt. Can this only happen on provision, please?
> - I had an existing config.php file for web1 and it had the port 8080 specified in its base URL settings, so anyone with an existing VM may find they need to edit their config files.
>
> I'm not really sure how to fix the hosts thing but maybe someone can help us out?
>
> Lorna

What change did you make? (from & to, please)

Regards,

Rob...

Lorna Mitchell

unread,
Nov 20, 2014, 10:03:21 AM11/20/14
to joindin-d...@googlegroups.com
The change is as you instructed.  From the first email, step two:

------
2. Update your hosts file for the dev.joind.in sites:

        10.223.175.44 dev.joind.in api.dev.joind.in web2.dev.joind.in
-------


This creates itself with the host joind.in, then I change it.  When I halt the VM, it removes the line from /etc/hosts completely.  When I vagrant up again the line returns but needs editing as above again.

Hopefully that makes sense

Lorna

--
You received this message because you are subscribed to the Google Groups "joindin-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joindin-develop...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rob Allen

unread,
Nov 20, 2014, 10:29:09 AM11/20/14
to joindin-d...@googlegroups.com
Hm…

which /etc/hosts file are we talking about?

I think that maybe I wasn’t very clear. I meant for you to update your computer’s /etc/hosts file, not the /etc/hosts in the vagrant VM.

Regards,

Rob...

-- 
PHP content at http://akrabat.com
Daily Jotter for Mac OS X at http://dailyjotter.com

Rob Allen

unread,
Nov 21, 2014, 2:47:51 AM11/21/14
to joindin-d...@googlegroups.com
Following up on this for completeness.

Lorna had the Hostsupdater vagrant plugin installed (https://github.com/cogitatio/vagrant-hostsupdater). This plugin automatically updates your computer’s /etc/hosts file for you when you spin up a Vagrant box (and then removes what it added when you halt or destroy it).

We worked out the correct Vagrantfile settings for Lorna’s computer and then packaged them into a PR (https://github.com/joindin/joindin-vm/pull/45) so that the joind.in VM will now work nicely with this plugin.

Regards,

Rob...

On 20 Nov 2014, at 15:03, Lorna Mitchell <lorna.m...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages