mirror of https://github.com/flarum/flarum
update scripts and vagrantfile
parent
2a2c130b52
commit
ab32879de9
|
@ -1 +0,0 @@
|
||||||
* text=auto
|
|
|
@ -316,5 +316,6 @@ Vagrant.configure("2") do |config|
|
||||||
# Add these to the same directory as the Vagrantfile.
|
# Add these to the same directory as the Vagrantfile.
|
||||||
##########
|
##########
|
||||||
config.vm.provision "shell", path: "./scripts/environment.sh"
|
config.vm.provision "shell", path: "./scripts/environment.sh"
|
||||||
|
config.vm.provision "shell", path: "./scripts/workbench.sh"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
cd /vagrant
|
||||||
|
php artisan migrate --bench="flarum/core"
|
||||||
|
php artisan db:seed --class="Flarum\Core\Support\Seeders\DatabaseSeeder"
|
||||||
|
cd /vagrant/workbench/flarum/core/ember
|
||||||
|
npm install
|
||||||
|
bower install
|
|
@ -1,19 +1,9 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cp /vagrant/.env.example.php /vagrant/.env.local.php
|
cp /vagrant/.env.example.php /vagrant/.env.local.php
|
||||||
|
|
||||||
sudo apt-get install phantomjs zsh exuberant-ctags
|
sudo apt-get install phantomjs zsh exuberant-ctags
|
||||||
|
|
||||||
curl -L http://install.ohmyz.sh | sh
|
curl -L http://install.ohmyz.sh | sh
|
||||||
## Comment the below line out if you don't want zsh
|
## Comment the below line out if you don't want zsh
|
||||||
chsh /bin/zsh vagrant
|
chsh /bin/zsh vagrant
|
||||||
|
|
||||||
cd /vagrant
|
bash /vagrant/scripts/aliases.sh
|
||||||
php artisan migrate --bench="flarum/core"
|
|
||||||
php artisan db:seed --class="Flarum\Core\Support\Seeders\DatabaseSeeder"
|
|
||||||
cd /vagrant/workbench/flarum/core/ember
|
|
||||||
npm install
|
|
||||||
bower install
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
mkdir -p /vagrant/workbench/flarum/core
|
||||||
|
cd /vagrant/workbench/flarum/core
|
||||||
|
git clone https://github.com/flarum/core .
|
||||||
|
|
||||||
|
bash /vagrant/scripts/app.sh
|
Loading…
Reference in New Issue