Difference between revisions of "Working With Vagrant and Virtualbox"
(→Copy database from ds4) |
|||
Line 6: | Line 6: | ||
Once both of these are installed on your system you'll need to obtain the Gaslight Media Vagrant Box. | Once both of these are installed on your system you'll need to obtain the Gaslight Media Vagrant Box. | ||
− | [http:// | + | [http://dev70.gaslightmedia.com/~steve/Vagrant/package.box GLMBox] |
Add the box to vagrant. | Add the box to vagrant. |
Latest revision as of 11:06, 21 April 2020
Mac, Linux, Windows can install Vagrant and Virtualbox.
Once both of these are installed on your system you'll need to obtain the Gaslight Media Vagrant Box.
GLMBox
Add the box to vagrant.
vagrant box add GLMBox package.box
Grab the vagrantFolder zip file and unpack it.
VagrantSites.zip
Once this is done you should go into the folder and run
vagrant up
EXTRA: Add a plugin to vagrant that will update the virtualbox guest additions.
vagrant plugin install vagrant-vbguest
Once this is installed it will check to make sure you have the latest guest additions. If they get updated it is best to restart the box.
vagrant halt vagrant up
You're good to go!
Contents
CommonApps
You can remove the CommonApps directory that is in your sites folder and run
svn co http://cvs2/svn/sitesCommonApps CommonApps
This will setup all commonApps for you as svn:externals. You can update the entire CommonApps folder by going into it and run
svn update
Create databases on vagrant machine
for databases in UTF8
createdb -U postgres -E UTF8 -l en_US.UTF8 -T template0 {dbname}
For database in SQL_ASCII
createdb -U postgres -E SQL_ASCII -T template0 {dbname}
Copy database from ds4
pg_dump -U postgres -Fc -f {dbname}.tar -h ds4 {dbname}
Restore the db from file into new database
pg_restore -U postgres -d {dbname} {dbname}.tar