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.