-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
kheiken edited this page Jan 16, 2012
·
2 revisions
First, get a clone of the current release:
$ git clone https://github.com/kheiken/scattport.git
$ cd scattport
Now, create the database schema. There is a sample .sql file included for use with MySQL:
$ mysqladmin -uroot create $DATABASE
$ mysql -uroot $DATABASE < mysql_schema.sql
Replace $DATABASE with whatever suits your needs.
There are two configurations files included that you need to modify:
-
config.php- changes required in line 17 and 29 -
database.php- lines 44 to 48 need to be adjusted to suit your environment
Copy the samples and edit them accordingly:
$ cp application/config/config.sample.php application/config/config.php
$ cp application/config/database.sample.php application/config/database.php
$ vim application/config/config.php
$ vim application/config/database.php
It is important to copy these files rather than moving them. If you move them, updates (git pull) would get nasty.
The file application/config/scattport.php contains some settings for the different simulators you want to integrate. The file is fully documented, so you should be fine.