CodeIgniter Forums
Locally access/debug CI applicatino - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Locally access/debug CI applicatino (/showthread.php?tid=39871)



Locally access/debug CI applicatino - El Forum - 03-23-2011

[eluser]justmelat[/eluser]
Hello, now that I have one part of the issue resolved, I want to go back to the first part:

I inherited a codeigniter app, that was created for our production and development environments, long story short, the user is able to auto create their own url, so for example if the company name is “companyx” they enter in ‘companyx’ and click save, then they can go to the url “company.myproject.com” or if the company’s name is gaming, they enter it into the system, save it and the url is now “gaming.myproject.com”. That works perfectly. All clients are using the same framework.

For various reasons that I won't go into, I can’t debug directly on the staging server, so I downloaded everything, code, db, all of it, and set it up on my local machine, the thing is, I can’t figure out what the url would be for my local machine. I have to put that url into the debugger to kick it off.

For my other codeigniter projects, the url is http://localhost/newCI for example.

If I want to open gaming.myproject.com from my local machine, how do I do it?

Someone mentioned using virtual host, but that did not work for me.

Help please!! aNd THank you!!

[Linux and CI 1.7.1.]

The code from the root level config.php file is below:
elseif($appEnv == "TEST")
{
//BASE URL
$BASE_URL = "http://".$_SERVER['SERVER_NAME'];

//DATABASE SETTINGS
$DB_HOST = "localhost";
$DB_USER = "autoclientapp";
$DB_PASSWORD = "db1cl13ntapp";
$DB_NAME = "clientapp";

//EMAIL SETTINGS
$SEND_EMAILS = TRUE;
$EMAIL_PROTOCOL = "SMTP"; //mail OR sendmail OR smtp
//set smtp details
$EMAIL_SMTP_HOST = "localhost";
$EMAIL_SMTP_PORT = "25";
$EMAIL_SMTP_AUTH_REQUIRED = FALSE;
$EMAIL_SMTP_SECURE = ""; // '' OR ssl OR tls
$EMAIL_SMTP_USERNAME = "";
$EMAIL_SMTP_PASSWORD = "";

//FILE UPLOAD SETTINGS
$UPLOAD_DIRECTORY_PATH = "uploads/";
$UPLOAD_DIRECTORY_FULL_PATH = "/usr/local/clientapp/standard/uploads/";
$UPLOAD_LOGO_PATH = "logos/";
$MAX_UPLOAD_SIZE = 4; //In MB
$MAX_UPLOAD_SIZE_PER_REQUEST = 8; //In MB

//RH SETTINGS
$RH_ENABLE = TRUE;
}
elseif($appEnv == "DEVL") //this would be my local computer
{
//BASE URL
$BASE_URL = "http://".$_SERVER['SERVER_NAME']."/clientapp/Source";

//DATABASE SETTINGS
$DB_HOST = "localhost";
$DB_USER = "autoclientapp";
$DB_PASSWORD = "db1cl13ntapp";
$DB_NAME = "clientapp";

//EMAIL SETTINGS
$SEND_EMAILS = FALSE;
$EMAIL_PROTOCOL = "SMTP"; //mail OR sendmail OR smtp
//set smtp details
$EMAIL_SMTP_HOST = "";
$EMAIL_SMTP_PORT = "";
$EMAIL_SMTP_AUTH_REQUIRED = FALSE;
$EMAIL_SMTP_SECURE = ""; // '' OR ssl OR tls
$EMAIL_SMTP_USERNAME = "";
$EMAIL_SMTP_PASSWORD = "";

//FILE UPLOAD SETTINGS
$UPLOAD_DIRECTORY_PATH = "uploads/";
$UPLOAD_DIRECTORY_FULL_PATH = "C:/xampp/htdocs/clientapp/Source/uploads/";
$UPLOAD_LOGO_PATH = "logos/";
$MAX_UPLOAD_SIZE = 4; //In MB
$MAX_UPLOAD_SIZE_PER_REQUEST = 8; //In MB

//RH SETTINGS
$RH_ENABLE = FALSE;
}

?>