Skip to content

Windows Local Setup

cmcglynn edited this page May 9, 2013 · 11 revisions

Download

Setup

Step 1. Clone this repository using Github.

Step 2. Open C:\BitNami\wappstack-5.4.10-0, double click use_wappstack.bat and create a postgres DB named transitscreens

createdb -O postgres -h localhost -U postgres transitscreens

Step 3. Load the schema (schema.sql) into the DB

psql -d transitscreens -U postgres -f C:\Users\Wherever\You\Put\TransitScreen\schema.sql -h localhost

Step 4. Create a TransitScreens user

Step 5. Add your postgres password xxxxxxxxxxx to application/config/database.php

Step 6. In application/config/config.php change the following:

//$config['base_url'] = 'http://' . $_SERVER['SERVER_NAME'] . '/Transit-Screen/';
$config['base_url']	= 'http://localhost/';

Step 7. Set WAPP to serve from the TransitScreen directory.

Edit C:\BitNami\wappstack-5.4.10-0\apache2\conf\httpd.conf. Search for DocumentRoot and change both

DocumentRoot "/Users/Wherever/You/Put/TransitScreen"
<Directory "/Users/Wherever/You/Put/TransitScreen">

Now, the TransitScreens admin interface should be accessible at: http://localhost/

Notes

In GitHub client, you will want to set it to ignore application\config\database.php and application\config\config.php because they will contain your DB password and local server name. Additionally you will need to make sure that whatever editing software you are using is capable of maintaining the Mac/Unix style line endings. See this for details.

Clone this wiki locally