1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 00:01:17 +02:00

Change installation instructions to use vagrant.

This commit is contained in:
Toby Zerner
2014-12-30 22:02:38 +10:30
parent a130c8f646
commit c2ac2fb3bc

View File

@@ -66,47 +66,26 @@ For a full list of planned features, see [Features](https://github.com/flarum/co
Currently Flarum is in its very early stages, and it isnt pretty. **It is far from usable.** Set it up only if you know what youre doing, and expect it to break a lot. Currently Flarum is in its very early stages, and it isnt pretty. **It is far from usable.** Set it up only if you know what youre doing, and expect it to break a lot.
1. Make sure you have [Composer](http://getcomposer.org), [ember-cli](http://www.ember-cli.com), and [Bower](http://bower.io) installed globally. 1. Install [Vagrant](https://www.vagrantup.com) and [VirtualBox](https://www.virtualbox.org).
2. Create a new [Laravel 4](http://laravel.com/docs/4.2/quick) project. 2. Clone the [Flarum skeleton app](https://github.com/flarum/flarum) and set up the Vagrant box:
3. Clone the Flarum repository into the workbench and install dependencies:
``` ```
git clone https://github.com/flarum/core.git workbench/flarum/core git clone git@github.com:flarum/flarum
cd workbench/flarum/core cd flarum
composer install vagrant up
cd ../../..
php artisan dump-autoload
``` ```
5. Create a new MySQL database and configure your database details in `app/config/database.php`. 3. SSH into the Vagrant box and compile the Ember app:
6. Run the Flarum migrations and database seeder to generate dummy data:
``` ```cd /vagrant/workbench/flarum/core/ember && ember serve --output-path="../public"```
php artisan migrate --bench="flarum/core"
php artisan db:seed --class="Flarum\Core\Support\Seeders\DatabaseSeeder"
```
7. Add the Flarum service providers to the `providers` array in `app/config/app.php`: > You can also use the `esv` alias to run the above command.
``` 4. Add the following to your /etc/hosts file:
'Flarum\Core\CoreServiceProvider',
'Flarum\Api\ApiServiceProvider',
'Flarum\Web\WebServiceProvider'
```
8. Remove the default route in `app/routes.php`. ```192.168.29.29 flarum.dev```
9. Run the following commands to compile the Ember app:
``` 5. Visit flarum.dev in a browser.
cd workbench/flarum/core/ember
npm install
bower install
ember serve --output-path="../public"
```
10. Visit your Laravel application in a browser.
> Note: You must access the Laravel application so that it is at the top level (i.e. not under any sub-directories.) To do this, you can either set your web server's document root to the `public` folder of your application, or you can [configure a virtual host](http://davidwalsh.name/create-virtual-host) pointing to the `public` folder.
If youre having trouble, **do not** create a new issue — instead, get help on the [Flarum Development Forum](http://discuss.flarum.org) or hop on the IRC channel (#flarum on irc.freenode.net). If youre having trouble, **do not** create a new issue — instead, get help on the [Flarum Development Forum](http://discuss.flarum.org) or hop on the IRC channel (#flarum on irc.freenode.net).