-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GAE php5.5 #7
Comments
I think that the issue is fully related to the environment detection. I managed to run my test app on GAE without applying any changes. I would suggest to revert the $env = $app->detectEnvironment(array(
'local' => array('homestead'),
)); or something else, but using the same format i.e. After that, please capture the error via GAE log and post it here for further discussion. Best, Ron. |
Hi Ron, This is my $env = $app->detectEnvironment(array(
'local' => array('Mac-mini.local'),
)); Some how. when i try to print out my monolog to get the current environment, it is still in production mode even though i set it to my local machine. I double check with my machine hostname to make sure it is not misspelled. Take note that it is working on php5.4 before the updates carried out by GAE. Please advise. Regards, |
I used the following application: test1-app
version: 1
runtime: php55
api_version: 1
handlers:
- url: /favicon\.ico
static_files: public/favicon.ico
upload: public/favicon\.ico
- url: /packages
static_dir: public/packages
- url: /.*
script: public/index.php
skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\.(?!env\.php).*$
- ^(.*/)?node_modules.*$
- ^(.*/)?_ide_helper\.php$ and I'm using Anyway I would suggest you run PHP code like this one: <?php
var_dump(gethostname()); in order to obtain the correct hostname. If you could send me a sample app code having the same issue I will be able to investigate. Best, Ron. |
Hi Ron, The PHP Code <?php
var_dump(gethostname()); and I am getting the same hostname. Hence, I tried to switch between runtime 5.4 and 5.5 with the same settings and apparently, the 5.4 could detect my environment. For a further testing, I change the $env to wrong local name in the bootstrap/start.php in PHP 5.4 runtime and it could switch to production which means, the 5.4 is working as expected but not the PHP 5.5 runtime. I have configure the route '/env' to printout the current environment. Thanks. Nick |
Hi Nick, http://test-sql-l4.appspot.com From my perspective the Then I changed the In my opinion there should be something in the workflow that you are using preventing the app from working properly or maybe something about your assumptions regarding the app. Please send me the exact set of commands, behaviours, assumptions and outputs you have in your workflow (including the deployment command, like Best, Ron. |
Hi Ron, There is only one thing I change from PHP5.4 to PHP5.5, application: gaelaravelsql
version: 1
runtime: php55 --> changing this from php to php55
api_version: 1
handlers:
- url: /favicon\.ico
static_files: public/favicon.ico
upload: public/favicon\.ico
- url: /packages
static_dir: public/packages
- url: /.*
script: public/index.php
skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\.(?!env\.php).*$
- ^(.*/)?node_modules.*$
- ^(.*/)?_ide_helper\.php$
Hence, I just relaunch the app using the GoogleAppEngineLauncher and use the '/env' route, and it just echo me back with production environment. To conclude from PHP5.4 to PHP5.5, only one changes made which is the app.yaml from php to php55. |
I downloaded the GoogleAppEngineLauncher and tried to run the app. It appears that But still there is another big issue, on which I cannot help you, in php55 environment the local file system is read-only, meaning all the data previously written to Currently I don't know if this behaviour can be changed easily. I suggest using Vagrant + VirtualBox + Homestead VM for local development. Best Regards, Ron. |
Hi Ron, Thanks. Regards, |
Hi Nick,
Hope this helps, Ron. |
Hi Ron, Anyhow ,a quick question for u, do you have any example code to provide upload handling with laravel and gae? I notice that in GAE, if we want to upload picture or any files to the gae bucket, it is quite different. Thanks. Regards, |
In general you could use something like proposed here: https://cloud.google.com/appengine/docs/php/googlestorage/user_upload But if you'd like my opinion on Laravel friendly way, I could get back to you in couple of days after some testing. |
Hi Ron, In the mean while, I would try to use on the proposed method. Thanks. Regards, |
I was very sick last week, it will take some time to respond. |
Hi Ron, |
Hi Nick, |
Some interesting facts about the new GAE SDK: I would recommend to take a look specifically at: To make the filesystem read/write, add the following to your php.ini file. google_app_engine.disable_readonly_filesystem = 1 |
Since the relevance of |
Hi,
I encounter a problem for the new Google App Engine runtime for the php 5.5 that supported Curl now.
Previously, in PHP 5.4, everything is running fine for the development and production as well.
After adjusted to PHP 5.5, it seems like the error logging is having some error.
First, it seems like it cannot detect our environment using the 'hostname' where i have to explicit set it as follow :
However, with this, it could detect it is in local mode now but it will have this error now.
Error in exception handler: The stream or file "/GAE/server/app/storage/logs/laravel.log" could not be opened: failed to open stream: No such file or directory in /GAE/bookme/GAE/server/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:84
If i revert it back to 5.4 and everything works fine again. I also make sure my storage folder got all the read and write access.
Any advise on this ?
Thanks.
Regards,
Nick
The text was updated successfully, but these errors were encountered: