Hi, as per the client requirement he needs app deployed to google cloud app engine. I read different blog posts to do the same. There is no content available for octobercms and most of the posts are related to laravel.
I have figured out most of the things:-
- Need to create a local copy of octobercms with a
app.ymlthat will be deployed with google cloud sdk.
- Cloud SQL database
I still need help on following:-
Where to store user uploaded files? As per most of the posts the storage is linked with
/tmpdirectory of instance and as per the google docs this is temporary storage per instance. I think it is okay for cache but not for the user files. I also read to use google cloud storage filesystem with following configuration with laravel project.
'google' => [ 'driver' => 's3', 'key' => 'xxx', 'secret' => 'xxx', 'bucket' => 'qrnotesfiles', 'base_url'=>'https://storage.googleapis.com' ]
This is from a article about deploying laravel on google app engine. Is it correct as the S3 is related with AWS?. Do I need to use some packages and configuration to work with octobercms or Is there a driver available for this?. Please clear I haven't used cloud storage with laravel/octobercms before.
Do indeed to remove any package as mentioned in this post
Finally, remove the beyondcode/laravel-dump-server composer dependency. This is a fix for an error which happens as a result of Laravel's caching in bootstrap/cache/services.php.
composer remove --dev beyondcode/laravel-dump-server
- To run the migration on cloud SQL I need to use google SQL proxy with connected local setup of octobercms. It is fine for first deployment but I don't think it will work well for on going updates. Is there a better way to handle this.
Thanks in advance.
Update: After digging a lot I am able to connect with Google Cloud Storage with https://github.com/Superbalist/laravel-google-cloud-storage package for laravel. I had created a filesystem in
filesystem.php config and also updated the
cms.php config to use
gcs disk created in
Connecting with local setup of octobercms with cloud Sql working great as available in documentations. but connecting app engine instance with cloud SQL took 2 days (Still don't know It is the issue of incorrect us of inverted commas (") in app.yaml or enabling SQL API).
Now the issue is-
The google cloud app engine (standard) instance is read-only and you can link storage to
/tmp but the google cloud app engine (flexible) allows write but with limited permission.
Octobercms show error enable to create cms cache files due to permission. I think this is because app engine allow file create with restricted permission model and October cms create a directory with 0777 (I really don't know with was the cause)
Due to the deadline, I deployed the project on app compute.
1-2 of 2