Browse Source

update scripts and vagrantfile

pull/1/head
Mike Dugan 10 years ago
parent
commit
ab32879de9
  1. 1
      .gitattributes
  2. 1
      Vagrantfile
  3. 8
      scripts/app.sh
  4. 12
      scripts/environment.sh
  5. 7
      scripts/workbench.sh

1
.gitattributes vendored

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

1
Vagrantfile vendored

@ -316,5 +316,6 @@ Vagrant.configure("2") do |config|
# Add these to the same directory as the Vagrantfile.
##########
config.vm.provision "shell", path: "./scripts/environment.sh"
config.vm.provision "shell", path: "./scripts/workbench.sh"
end

8
scripts/app.sh

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

12
scripts/environment.sh

@ -1,19 +1,9 @@
#! /bin/bash
cp /vagrant/.env.example.php /vagrant/.env.local.php
sudo apt-get install phantomjs zsh exuberant-ctags
curl -L http://install.ohmyz.sh | sh
## Comment the below line out if you don't want zsh
chsh /bin/zsh vagrant
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
bash /vagrant/scripts/aliases.sh

7
scripts/workbench.sh

@ -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…
Cancel
Save