update scripts and vagrantfile

pull/1/head
Mike Dugan 2014-12-24 08:58:55 -05:00
parent 2a2c130b52
commit ab32879de9
5 changed files with 17 additions and 12 deletions

1
.gitattributes vendored
View File

@ -1 +0,0 @@
* text=auto

1
Vagrantfile vendored
View File

@ -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

8
scripts/app.sh Normal file
View File

@ -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

View File

@ -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

7
scripts/workbench.sh Normal file
View File

@ -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