-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
If you want to install Mustached Robot, you need:
- PHP 5.3
- MySql
- Apache
Then, you just need to follow these instructions:
Install via Git + Composer:
git clone git@github.com:MustachedRobot/core.git
cd core
php composer.phar install
Or install via Composer:
curl -sS https://getcomposer.org/installer | php
composer create-project mustached-robot/core -s dev
-
Set up your local vhost to mustached.dev
-
Configure your vhost so :
- mustached.dev points to /mustached/public
- set up the environment variable FUEL_ENV to "development" or "production"
Vhost example :
<VirtualHost *:80>
DocumentRoot "/var/www/mustached-robot/public"
ServerName mustached.dev
SetEnv FUEL_ENV development
</VirtualHost>
- Set up the database name and connection login / passwords (check fuel/app/config/development/db.php to get the full configuration, or edit the file)
php oil refine migrate
This command setup the database and add a default value for the "reasons" table (reason with id 1 is, by convention, for coworking).
In order to update the core very easily, some config files specific to your installation are excluded from versioning. These files are versioned with the ".dist" extension. You should copy them in the same directory and remove the .dist extension to configure your own Mustached Robot.
In the end, the configuration files specific to your installation will be these ones:
|- fuel/app/config | |_ auth.php (security settings) | |_ simpleauth.php (security settings) | |_ mustached.php (application configuration settings) | |_ production/ | |_ db.php (production database settings) | |_ rest.php (rest authentication settings)
-
Into the fuel/app/config/ directory, copy mustached.php.dist to mustached.php and set the right settings for your coworking space :
-
seats : set the number of seats available in the coworking space
-
geolocation : set to true if you want to restrict checkin if a user is in a given area
-
calendar : setup the informations for your calendar (next events in your coworking space)
-
Copy fuel/app/config/simpleauth.php.dist to simpleauth.php and update the file :
- login_hash_salt : set a unique string (the more complex, the better). This string will be used to encrypt user password and should not be revelad nor changed
-
Copy fuel/app/config/auth.php.dist to auth.php and update the file :
- salt : set a unique string (the more complex, the better). This string will be used to encrypt user password and should not be revelad nor changed
Note: we need both salt.
- /public/assets/css
- /public/assets/cache
- /fuel/app/cache/
- /fuel/app/cache/twig
- /fuel/config/mustached.php
If you want to enable an API access to external developers, you need to configure the login / password of the developers you want to allow in /fuel/app/config/rest.php -- set the 'valid_logins' array :
'valid_logins' => array('developer1' => '1234', 'developer2' => '5678'),
- You first need to create a user by registering the user on http://mustached.dev/user/account/add
- Then, in the database, set the "group" field of this user to 100 (it means you will be an admin)
Check the directory /fuel/app/config/production, copy the files without the ".dist" extension, and set the right values in the files.