mirror of https://github.com/flarum/flarum
parent
6318028634
commit
a8eb18dd73
@ -1 +1,9 @@
|
||||
#Flarum Skeleton App
|
||||
This application is a skeleton for https://github.com/flarum/core - it will set up the application and install dependencies in a Vagrant box.
|
||||
|
||||
## Instructions
|
||||
````
|
||||
git clone git@github.com:mikedugan/flarum-app
|
||||
cd flarum-app
|
||||
vagrant up
|
||||
````
|
||||
|
@ -1,9 +0,0 @@
|
||||
#! /bin/bash
|
||||
cp /vagrant/scripts/aliases ~/.aliases
|
||||
|
||||
if [ -e "/home/vagrant/.zshrc" ]
|
||||
then
|
||||
echo "source ~/.aliases" >> ~/.zshrc
|
||||
else
|
||||
echo "source ~/.aliases" >> ~/.bashrc
|
||||
fi
|
@ -1,8 +0,0 @@
|
||||
#! /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,9 +1,33 @@
|
||||
#! /bin/bash
|
||||
|
||||
cp /vagrant/.env.example.php /vagrant/.env.local.php
|
||||
su - vagrant
|
||||
### Setup NPM globals and create necessary directories ###
|
||||
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
|
||||
mkdir /home/vagrant/npm
|
||||
mkdir -p /vagrant/workbench/flarum/core
|
||||
sudo chown -R vagrant:vagrant /home/vagrant
|
||||
npm install -g bower ember
|
||||
cp /vagrant/scripts/aliases ~/.aliases
|
||||
|
||||
### Create rc file ###
|
||||
if [ -e "/home/vagrant/.zshrc" ]
|
||||
then
|
||||
echo "source ~/.aliases" >> ~/.zshrc
|
||||
else
|
||||
echo "source ~/.aliases" >> ~/.bashrc
|
||||
fi
|
||||
|
||||
### Set up environment files and database ###
|
||||
cp /vagrant/.env.example.php /vagrant/.env.local.php
|
||||
mysql -u root -proot -e 'create database flarum'
|
||||
### Setup flarum/core ###
|
||||
cd /vagrant/workbench/flarum/core
|
||||
git clone https://github.com/flarum/core .
|
||||
composer install
|
||||
cd /vagrant/workbench/flarum/core/ember
|
||||
npm install
|
||||
bower install
|
||||
|
||||
bash /vagrant/scripts/aliases.sh
|
||||
cd /vagrant
|
||||
php artisan migrate --bench="flarum/core"
|
||||
php artisan db:seed --class="Flarum\Core\Support\Seeders\DatabaseSeeder"
|
||||
|
@ -1,7 +0,0 @@
|
||||
#! /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