lvalverdeb
Posts: 299
|
| Posted: 06/21/2007, 10:37 AM |
|
Is it possible to know, at runtime, which server profile is being used? I was hoping to find a global $CCSServerProfile; . But Server Profiles do seem to be stored anywhere in the App.
Anyhow, I am looking for an easier way to deploy apps using common libraries to different servers.
$pathtolib = "http://localhost/mylibs/";
include_once($pathtolib."common/lib1.php");
include_once($pathtolib."other/lib2.php");
......
Right now, I am manually changing the setting of $pathtolib before publishing to different servers. Is there an easier way to handle this or is this as easy as it gets?
Luis
_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4 |
 |
 |
DonB
|
| Posted: 06/21/2007, 12:19 PM |
|
In the past I've added 'wish' items along this line. The 'Common' file
ought to be split up so that there is a separate file with database
connection info and all other publish-specific info. That way, what was in
'common' really would be common - to all published variants.
In addition, the connecton parameters for database name, user, password,
host, port ought to be in this separate file and be named symbols rather
than directly declared in the connection class.
In other words, publish a config file separately from the 'common' file
which isn't so common when you get right down to it.
--
DonB
http://www.gotodon.com/ccbth
"lvalverdeb" <lvalverdeb@forum.codecharge> wrote in message
news:5467ab763a1771@news.codecharge.com...
> Is it possible to know, at runtime, which server profile is being used? I
was
> hoping to find a global $CCSServerProfile; . But Server
Profiles
> do seem to be stored anywhere in the App.
>
> Anyhow, I am looking for an easier way to deploy apps using common
libraries to
> different servers.
>
>
> $pathtolib = "http://localhost/mylibs/";
> include_once($pathtolib."common/lib1.php");
> include_once($pathtolib."other/lib2.php");
> .....
>
> Right now, I am manually changing the setting of $pathtolib before
publishing
> to different servers. Is there an easier way to handle this or is this as
easy
> as it gets?
>
> Luis
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|