Forum

Thread tagged as: Problem, Error, Installation

Using Runway Locally

Hi I'm trying to use a local version of Runway for testing but I get the following message:

Sorry, your license key isn't valid for this domain. This license key is for local testing only, so can only be used on a non-public domain.

I have a local dev environment set up on the domain loc.ebc

These are my 2 config files:

config.php

<?php
    switch($_SERVER['SERVER_NAME']) {

        case 'loc.ebc':
            include(__DIR__.'/config.local.php');
            break;

        default:
            include('config.production.php');
            break;
    }

    define('PERCH_LICENSE_KEY', 'R3-LOCAL-LXC170-JTH531-SSM026');
    define('PERCH_EMAIL_FROM', 'xxx@creativemonster.co.uk');
    define('PERCH_EMAIL_FROM_NAME', 'Toby Martin');

    define('PERCH_LOGINPATH', '/admin');
    define('PERCH_PATH', str_replace(DIRECTORY_SEPARATOR.'config', '', __DIR__));
    define('PERCH_CORE', PERCH_PATH.DIRECTORY_SEPARATOR.'core');

    define('PERCH_RESFILEPATH', PERCH_PATH . DIRECTORY_SEPARATOR . 'resources');
    define('PERCH_RESPATH', PERCH_LOGINPATH . '/resources');

    define('PERCH_HTML5', true);
    define('PERCH_TZ', 'UTC');

config.local.php

<?php
    define('PERCH_SITEPATH', '/Users/Toby/Sites/ebc');

    define('PERCH_SCHEDULE_SECRET', 'iYNTwdJecWCVGmP2');

    define('PERCH_DB_USERNAME', 'root');
    define('PERCH_DB_PASSWORD', 'root');
    define('PERCH_DB_SERVER',   "localhost");
    define('PERCH_DB_DATABASE', 'perch_ebc_local');
    define('PERCH_DB_PREFIX',   'perch3_');

    define('TEMP_PATH', '/users/toby/sites/backups');
Toby Martin

Toby Martin 1 points

  • 4 years ago
Duncan Revell

Duncan Revell 78 points
Registered Developer

.ebc isn't being recognised as a local domain - it needs to be .dev or .loc or .local or .example or some other 'not local' domains.

Hmmm that's a little bit annoying, I want use loc.domain. Thanks though!

Drew McLellan

Drew McLellan 2638 points
Perch Support

You can do that, but you'd need to pay for the license first.