If you want to be extra awesome, go with 7.1 for free users too instead of trying to patch 7.0. Everyone should be writing code that's compatible with 7.1 anywayI'll look into creating a custom VagrantFile that will automatically install the fixes and patches on box creation.
Can confirm this worksCould you create a tunnel with PuTTY and connect your normal client through that?
Almost done...If you want to be extra awesome, go with 7.1 for free users too instead of trying to patch 7.0. Everyone should be writing code that's compatible with 7.1 anyway
Fillip
Great, I'll give it a wee test once it's readyAlmost done...
VirtualBox VMs/development_default_1512151825124_73202
folder? I'm also assuming I can boot that VM in VirtualBox on another OS?HeidiSQL is a nice alternative on Windows.I'm finding that unless I stick to locally installed MySQL I can't use this, my SQL client doesn't support SSH tunnelling unless I pay for it (SQLyog Community Edition). If I use local MySQL that takes away some of the portability, so that diminishes the value for me unfortunately![]()
The nice thing is that apart from the database, your mods never actually live on the VM, they live in the Windows file system. You can just copy/move the entire XF directory to wherever you want to move it, along with a standard mysqldump of the database from the VM, then provision a new box and off you go.Great, I'll give it a wee test once it's ready
Also another question; if I create a VM and install XF2 / all my mods in it, how would I go about copying the VM so I can boot it on another machine? I'm assuming I should just zip up theVirtualBox VMs/development_default_1512151825124_73202
folder? I'm also assuming I can boot that VM in VirtualBox on another OS?
I've never really given VMs a serious look due to performance issues in the past so I'm still pretty new to it
Fillip
I'm not sure I fully understand the shape of the deployment you're talking about here... can you give me a few examples, as I'm sure there's an easier way to manage itI actually discovered the cause of the performance issues Ive been having with VMs; I need symlinks in order to support managing multiple mods in multiple forum folders (vb3, vb4, vb5, xf1, xf2) and allow for separate Git repos for each mod.
There's no way I'd be able to manage 140 mods across those platforms if I manually copied files back and forth, or had 1 forum per mod (how would I test integration?)
So I guess I'm blocked from using VMs for anything other than quick one-off tests, which to be fair isn't the worst fate in the world.
Fillip
For instance, DB Security:I'm not sure I fully understand the shape of the deployment you're talking about here... can you give me a few examples, as I'm sure there's an easier way to manage it
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
config.vm.synced_folder "{blablabla}", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
I did test it last night actually, and the autoloader in XF2 failed because it said the files didn’t exist.TBH, the only potential problem I can see with that setup would be if the folder from Windows that gets mounted on the VM as /var/www (using the example from the XF docs, that would be C:\Users\{username}\MyServer) couldn't follow the Windows symlinks - but I think it shouldn't have a problem with that.
# -*- mode: ruby -*-
# vi: set ft=ruby :
$bootstrap = <<SCRIPT
# This installs php7.1
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.1 php7.1-xml php7.1-mysql php7.1-curl php7.1-mbstring php7.1-gd php7.1-bcmath php7.1-bz2 php7.1-enchant php7.1-imap php7.1-intl php7.1-mcrypt php7.1-pspell php7.1-zip php7.1-odbc php7.1-xdebug
# add the proper xdebug config
sudo echo -e "zend_extension=xdebug.so\nxdebug.show_error_trace = 1\nxdebug.remote_enable=on\nxdebug.remote_connect_back=on\nxdebug.remote_host=192.168.33.10" > /etc/php/7.1/mods-available/xdebug.ini
# This enables Apache to run php7.1
sudo a2dismod php7.0
sudo a2enmod php7.1
sudo service apache2 restart
# create a database for XenForo
mysql -uroot -proot -e 'create database xenforo'
SCRIPT
Vagrant.configure("2") do |config|
# This is Scotch Box 3.0 (the free version)
# _________________________________________
# If you want PHP7, MySQL 5.7, Ubuntu 16.04, Build Scripts (customize your own boxes in minutes)...
# ... an NGINX version, PHPUnit, Yarn, WebPack, improved email testing with MailHog...
# ... generally Higher versions of things, Ruby (via RVM), Node (via NVM), WebPack ready, and more.
# Just go to https://box.scotch.io/pro
# Your support will help keep this project alive!
config.vm.box = "scotch/box"
config.vm.provision :shell, inline: $bootstrap
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.hostname = "scotchbox"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
# Optional NFS. Make sure to remove other synced_folder line too
#config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
end
xf2
so it wouldn’t be confused with any XF1 DBs I think the $ means the lines are incomplete heresudo apt-get install -y php7.1 php7.1-xml php7.1-mysql php7.1-curl php7.1-mbstring php7.1-gd php7.1-bcmath php7.1-bz2 php7.1-$
# add the proper xdebug config
sudo echo -e "zend_extension=xdebug.so\nxdebug.show_error_trace = 1\nxdebug.remote_enable=on\nxdebug.remote_connect_back=on\n$
Oh this isn't going well is it?I think the $ means the lines are incomplete here
Fillip
Updated the script...I think the $ means the lines are incomplete here![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.