I am having problems understanding the class.config.php (https://
github.com/tylerhall/simple-php-framework/blob/master/includes/
class.config.php).
I want to work using my laptop as a staging/development environment
(running XAMPP). I would like to develop locally and then "publish" to
a standard hosted www.one.com domain - how do you do that?
In the config we have:
private $productionServers = array('/^your-domain\.com$/');
private $stagingServers = array();
private $localServers = array();
etc. etc.
So, how do you do it? Can someone running a similar setup share a
class.config.php with dummy/fake data...? What software do you use to
move the files from staging to production? Just ftp - or is there a
smarter option?
Can someone explain how to do this, as if I was 5 years old...?
Kind regards
Kristian
Thank you very much. This was exactly what I needed! :-)
Kind regards
Kristian
For this example:
private $productionServers = array('/^domain\.com$/');
If I am accessing my site form http://www.domain.com the result is:
Where am I?
You need to setup your server names in class.config.php
$_SERVER['HTTP_HOST'] reported www.domain.com
Well, if i am accessing for http://domain.com the result is OK.
How I can fix this?
Regards,
JP
private $productionServers = array('/domain\.com$/');
Or, if you want to be more specific, you could do
private $productionServers = array('/^(www\.)?domain\.com$/');
(Haven't tested that last one.)
Tyler
> --
> You received this message because you are subscribed to the Google Groups "Simple PHP Framework" group.
> To post to this group, send email to simple-php...@googlegroups.com.
> To unsubscribe from this group, send email to simple-php-frame...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-php-framework?hl=en.
>
private $productionServers = array('/domain\.com$/');
Regards,
JP