CodeIgniter Forums
ENVIRONMENT=testing<>production and development behavior - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: ENVIRONMENT=testing<>production and development behavior (/showthread.php?tid=66764)



ENVIRONMENT=testing<>production and development behavior - tsftprogramacion - 11-29-2016

I have migrated a site 2.2.6 with php7 in Ubuntu 16.
When I have variable ENVIRONMENT set to testing I have no layout at all, I mean just text without all formatting out, as if CSS where without load.
Any idea why ?
thank you.


RE: ENVIRONMENT=testing<>production and development behavior - skunkbad - 11-30-2016

(11-29-2016, 11:40 PM)tsftprogramacion Wrote: I have migrated a site 2.2.6 with php7 in Ubuntu 16.
When I have variable ENVIRONMENT set to testing I have no layout at all, I mean just text without all formatting out, as if CSS where without load.
Any idea why ?
thank you.

I've got two dev servers on Ubuntu 16.04 (php7), and I can tell you that there's no way to figure this out without you debugging. I'm also running 2.2.6 for one website, and no problems. I use ENVIRONMENT quite a bit. You're going to need to run some simple debugging with breakpoints to find out what went wrong.

Other possibilities would be that your directory permissions are not allowing to serve up a CSS file that is there. Are you getting a 404 on the request for the CSS file?