TaskBoardにhttp://192.168.55.105/TaskBoard/でアクセスして、ユーザ名admin、パスワードadminを入力します。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604taskboard"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604taskboard"
vbox.cpus = 2
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.105", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.105", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
# update packages
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
apt-get -y install unzip
wget https://github.com/kiswa/TaskBoard/archive/master.zip
unzip master.zip
apt-get -y install php7.0 libapache2-mod-php7.0 apache2 php7.0-sqlite sqlite
mv TaskBoard-master/ /opt/TaskBoard
cd /opt/TaskBoard/build
./build-all
chown -R www-data:www-data /opt/TaskBoard/
sudo ln -s /opt/TaskBoard /var/www/html/
cat << EOF >> /etc/apache2/apache2.conf
AllowOverride All
Options All
Require all granted
EOF
sed -i -e "s/Listen 80/Listen 0.0.0.0:80/" /etc/apache2/ports.conf
a2enmod expires
a2enmod rewrite
service apache2 restart
echo "access http://192.168.55.105/TaskBoard/"
echo "user: admin, password: admin"
SHELL
end
0 件のコメント:
コメントを投稿