mirror of https://github.com/flarum/flarum
updating the scripts and fixing things
parent
6318028634
commit
a8eb18dd73
|
@ -4,4 +4,4 @@ return [
|
||||||
'db_name' => 'flarum',
|
'db_name' => 'flarum',
|
||||||
'db_user' => 'root',
|
'db_user' => 'root',
|
||||||
'db_pass' => 'root'
|
'db_pass' => 'root'
|
||||||
]
|
];
|
||||||
|
|
|
@ -8,3 +8,6 @@ composer.lock
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
workbench/*
|
workbench/*
|
||||||
|
.vagrant
|
||||||
|
**/npm-debug.log
|
||||||
|
public/packages/flarum
|
||||||
|
|
|
@ -293,7 +293,7 @@ Vagrant.configure("2") do |config|
|
||||||
config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: composer_packages.join(" ")
|
config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: composer_packages.join(" ")
|
||||||
|
|
||||||
# Provision Laravel
|
# Provision Laravel
|
||||||
config.vm.provision "shell", path: "#{github_url}/scripts/laravel.sh", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version]
|
#config.vm.provision "shell", path: "#{github_url}/scripts/laravel.sh", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version]
|
||||||
|
|
||||||
# Provision Symfony
|
# Provision Symfony
|
||||||
# config.vm.provision "shell", path: "#{github_url}/scripts/symfony.sh", privileged: false, args: [server_ip, symfony_root_folder, public_folder]
|
# config.vm.provision "shell", path: "#{github_url}/scripts/symfony.sh", privileged: false, args: [server_ip, symfony_root_folder, public_folder]
|
||||||
|
@ -315,7 +315,6 @@ Vagrant.configure("2") do |config|
|
||||||
# Any local scripts you may want to run post-provisioning.
|
# Any local scripts you may want to run post-provisioning.
|
||||||
# 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", privileged: false
|
||||||
config.vm.provision "shell", path: "./scripts/workbench.sh"
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,7 +26,7 @@ $app = new Illuminate\Foundation\Application;
|
||||||
|
|
||||||
$env = $app->detectEnvironment(array(
|
$env = $app->detectEnvironment(array(
|
||||||
|
|
||||||
'local' => array('homestead', 'FlarumVm','Mikes-iMac-2.local'),
|
'local' => array('homestead', 'flarum','Mikes-iMac-2.local'),
|
||||||
|
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -1 +1,9 @@
|
||||||
#Flarum Skeleton App
|
#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
|
||||||
|
````
|
||||||
|
|
|
@ -32,9 +32,11 @@ alias cca='./vendor/bin/codecept Acceptance'
|
||||||
alias ccf='./vendor/bin/codecept Functional'
|
alias ccf='./vendor/bin/codecept Functional'
|
||||||
alias ccu='./vendor/bin/codecept run Unit'
|
alias ccu='./vendor/bin/codecept run Unit'
|
||||||
|
|
||||||
|
#ember/js stuff
|
||||||
|
alias esv='ember serve --output-path="/vagrant/workbench/flarum/core/public"
|
||||||
|
|
||||||
#function aliases
|
#function aliases
|
||||||
alias ghc=ghc
|
alias ghc=ghc
|
||||||
alias mkcd=mkcd
|
|
||||||
alias grl=grl
|
alias grl=grl
|
||||||
alias grln=grln
|
alias grln=grln
|
||||||
alias gac=gac
|
alias gac=gac
|
||||||
|
@ -66,17 +68,3 @@ gulpac() {
|
||||||
}
|
}
|
||||||
|
|
||||||
grl() { grep -rl "$1" * }
|
grl() { grep -rl "$1" * }
|
||||||
mkcd() {
|
|
||||||
if [ -z $1 ]; then
|
|
||||||
echo -e \e[0;31;1mUsage: mkcd [directory]\e[m;
|
|
||||||
else
|
|
||||||
if [ -d $1 ]; then
|
|
||||||
echo Changed to $1.;
|
|
||||||
cd $1;
|
|
||||||
else
|
|
||||||
mkdir $1;
|
|
||||||
echo Created $1;
|
|
||||||
cd $1;
|
|
||||||
fi;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
#! /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
|
sudo apt-get install phantomjs zsh exuberant-ctags
|
||||||
curl -L http://install.ohmyz.sh | sh
|
mkdir /home/vagrant/npm
|
||||||
## Comment the below line out if you don't want zsh
|
mkdir -p /vagrant/workbench/flarum/core
|
||||||
chsh /bin/zsh vagrant
|
sudo chown -R vagrant:vagrant /home/vagrant
|
||||||
|
npm install -g bower ember
|
||||||
|
cp /vagrant/scripts/aliases ~/.aliases
|
||||||
|
|
||||||
bash /vagrant/scripts/aliases.sh
|
### 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
|
||||||
|
|
||||||
|
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