Old version - Intro
To install FCS first you need to build it. This will be automatead in near future.
Old version - Requirements
Before you start make sure you have
drush
(version 5.x+ installation)git
(installation)
You can test is on *nix machine with
which
command. E.g.:which git
. This should output full path to git command. If there is nothing your system doesn't have it.
Old version - Installation
- Clone repository
cd
to dir where you want to makie app directory- Run command in your terminal
git clone git@github.com:FoodCoopSystem/foodcoopsystem.git
cd foodcoopsystem/app
- Setup
- Run drush make script:
drush make foodcoopsystem.make
- Install default Drupal version (follow installer).
- Replace installed new Drupal version with the Database from /database folder.
- Run
drush updb
- Run
drush vdel preprocess_css
- Run
drush cc all
- Set admin (UID 1) password to your desire one
drush upwd admin --password=secr3tPass
- Run drush make script:
Old version - Installation (automated version)
- Prepare your environement. You can use our docker image for that task.
cd
to dir with your codebase.- Add file
app/sites/default/local.settings.php
file and add database details to that file. Example file:
<?php
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'foodcoop',
'username' => 'root',
'password' => 'root',
'host' => 'db',
'prefix' => '',
);
- Execute build script:
./scripts/rebuild_directory_local.sh
.