[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: PHP Hot Deploy and APC Settings



Hi Diego,

As you know, apc.stat is ON in development mode and OFF by production mode by default.
Using "development mode" is not OK for you?
You can change your runtime environment by simply running  rhc env-set APPLICATION_ENV="development"/APPLICATION_ENV="Production" -a <yourappname>
followed by a rhc app restart -a <yourappname>
NOTE: In development mode, Xdebug extension will be also enabled.

apc.stat ON by default for production mode has been intentionally set. Although this bz1082554 is for PHP5.4, please check it out.

https://bugzilla.redhat.com/show_bug.cgi?id=1082554

Kenjiro


On Wed, Feb 25, 2015 at 4:45 AM, Diego Spinola Castro <spinolacastro gmail com> wrote:
Hello,
My php-5.3 cartridges is behaving odd when the hot_deploy marker is present, the code doesn't get updated after a deployment. Looking at the apc.ini template, i can see that apc.stat= setting based on application mode.

https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-php/usr/5.3/etc/php.d/apc.ini.erb#L43

I'm looking for a better approach since hot_deploy is very handy.




_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev




--
Kenjiro NAKAYAMA <nakayamakenjiro gmail com>
GPG Key fingerprint = ED8F 049D E67A 727D 9A44  8E25 F44B E208 C946 5EB9

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]