test bed for creating partner-path instance via vagrant and chef
-
ssh into vm
$ vagrant ssh
-
make yourself root
$ sudo su
-
go to vagrant home directory
$ cd /vagrant
-
backup apache config
$ cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.default
-
now add on application config to apache config
$ cat httpd.conf.default >> /etc/apache2/apache2.conf
-
make symbolic link for mercurial files
$ cd /usr/local
$ ln -s core-dev core
$ ln -s demo-dev demo
-
add databases and users
$ cd /vagrant
$ mysql -u root -p mysql < setup.sql
-
load data
$ mysql -umigration -p PP < snapshots/2013-06-07-pp.sql
$ mysql -umigration -p DEMO < snapshots/2013-06-07-demo.sql
-
make sure apache is good then restart
$ apachectl configtest
$ apachectl restart
-
browse the app via the host
$ http://localhost:2204/