Deploy Laravel 9 on Google Cloud Run + Sql + MySql + Cloud Build

  Рет қаралды 17,917

TechMan

TechMan

Күн бұрын

Пікірлер
@TheAntonioxr1
@TheAntonioxr1 3 ай бұрын
Excelent Video!! I spend a day trying to deploy a docker container and only your video was clear and simple, Thank you so much!!
@mcylinder
@mcylinder Жыл бұрын
Great job. I use a local DB for dev, then switch configs and run migrations when it's time to push to production. One tip I wanted to pass on is you can set a lot of ENV variables in your DOCKERFILE. I did that with my common values and then did the more critical ones (passwords, API keys) in the Google Cloud interface. (maybe 8 of them?). There's also a YAML file that gets created and that can also be revised.
@mamenatech
@mamenatech 2 жыл бұрын
core question for LARAVEL. how run artisan command, & npm run prod? 🍔
@DanielKyleb
@DanielKyleb 4 ай бұрын
Thanks for this! I got this to work but how do I make the changes show up real-time in localhost?
@thedanmwangi
@thedanmwangi 2 жыл бұрын
This is golden! 👏 What if your app has frontend libraries served with NPM? How can you install them in production?
@VybzKartelClassics
@VybzKartelClassics 4 ай бұрын
What if we bought a script on codecanyon how do we upload it to Google cloud platform? Could u make a video on that?
@victorchinonsougwu1359
@victorchinonsougwu1359 2 жыл бұрын
Thank you for this, this worked like charm. I have a quick question tho how do I verify my SQL instance is connected and how do I run my artisan commands??
@techman4396
@techman4396 2 жыл бұрын
just test your sql with any desktop tool or create a controller and fetch some records.
@victorchinonsougwu1359
@victorchinonsougwu1359 2 жыл бұрын
@@techman4396 That worked but my database didn't migrate to the cloud SQL and VARIABLES also didn't reflect, how would I go about that
@cricrangers2511
@cricrangers2511 2 жыл бұрын
Even adding environmental variable is not working, despite every permission, seems like cloud sql for laravel is not working with cloud run
@Michael_Andish
@Michael_Andish Жыл бұрын
And Mysql? how do you manage DB and connect to DB?!
@skylake9779
@skylake9779 Жыл бұрын
I put all env variables still getting this error "
@code-island
@code-island 5 ай бұрын
really useful, thanks
@rustamergashev7278
@rustamergashev7278 Ай бұрын
👍
@rayaguilar9085
@rayaguilar9085 2 жыл бұрын
Why set minimum instances to 1? Was that just so you could make it faster or will it not work with 0?
@coolcha
@coolcha 2 жыл бұрын
How to use local database for development locally using such a deployment workflow?
@vincemcgaj628
@vincemcgaj628 2 жыл бұрын
Thanks a lot! I tried CodeJets's method at first. Could not get it to work after multiple tries. Then I tried your method, it worked the first time around. Nice job.
@vincemcgaj628
@vincemcgaj628 2 жыл бұрын
Again, thanks for the help. Is there a way to run database migrations via "php artisan migrate --force" automatically when deploying to Cloud Build?
@bylde4791
@bylde4791 2 жыл бұрын
@@vincemcgaj628 I am sure there is a way but remember google cloud run does not allow volumes so if you are trying to save a mysql database colume on google run then it wont work
@vincentmcgargill8114
@vincentmcgargill8114 2 жыл бұрын
@@bylde4791 I actually figured it out. To run migrations during deployment, you are supposed to add an additional step to your cloud build process (i.e. typically the cloudbuild.yaml file). Just have that step connect to the DB then run php artisan migrate --force. Works like a charm. Again, thank you for posting this video.
@kansagous
@kansagous 2 жыл бұрын
@@vincentmcgargill8114 Please share it :)
@borknagarchile
@borknagarchile Жыл бұрын
Did you get working the cloud mysql connection?
@nadjinmalade8738
@nadjinmalade8738 2 жыл бұрын
thkx a loft for your video
@techman4396
@techman4396 2 жыл бұрын
hapy to help
@valeriopucciarelli
@valeriopucciarelli 2 жыл бұрын
Hi, thank you for the video. I managed to deployed a laravel vue app on cloud run but the css / js files are not loaded. How can I solve this problem? it's the same If i copy the .env.example with a new command run in Docker file?
@techman4396
@techman4396 2 жыл бұрын
Can you share the URL of your GCP instance? Will need to check the root path for your js/css and then only I can help you.
@valeriopucciarelli
@valeriopucciarelli 2 жыл бұрын
​@@techman4396 I solved the problem, when the app is online need to set the url with https and no http
@ajawinery5504
@ajawinery5504 2 жыл бұрын
@@valeriopucciarelli how to setting with apps bro?
@GtrsJohn
@GtrsJohn Жыл бұрын
Hi thanks for your video. It is not necessary to add a user in the dockerfile ?
@JosueLMM
@JosueLMM Жыл бұрын
and MYSQL?
@abhishek0116
@abhishek0116 2 жыл бұрын
@TechMan How much it cost you?
@arifdevcoding
@arifdevcoding 2 жыл бұрын
Where is mysql?
@frijai6720
@frijai6720 2 жыл бұрын
would you have a codeigniter 4 tutorial? please it's urgent
@alanaprianto5059
@alanaprianto5059 2 жыл бұрын
how to run laravel migration?
@nnaemekanweke
@nnaemekanweke Жыл бұрын
From the infrastructure setup for this video, the local environment is connected to the same database cloud run connects to. So you run your migration locally.
@felipeveiga87
@felipeveiga87 2 жыл бұрын
is it more cheap than a vm ?
@Peter-ue4iz
@Peter-ue4iz 2 жыл бұрын
I have the same question. How much would it cost to run a blog that has about 100,000 monthly visits?
Laravel Docker Course | Complete Laravel Dockerization
43:31
Emad Zaamout
Рет қаралды 85 М.
Deploy Laravel App to Google Cloud Run in 10 minutes
12:32
CodeJet
Рет қаралды 30 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 59 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 62 МЛН
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 38 МЛН
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 23 МЛН
Run your React app on Google Cloud
16:28
Google Cloud Tech
Рет қаралды 21 М.
Deploying Spring Boot with MySQL on Google Cloud: Cloud SQL Tutorial
17:15
How to run code on Google Cloud
7:40
Google Cloud Tech
Рет қаралды 66 М.
Connect to Cloud SQL from Cloud Run in Google Cloud
17:17
Cloud Advocate
Рет қаралды 11 М.
Deploy Laravel applications fast and cheap
8:54
Andrew Schmelyun
Рет қаралды 26 М.
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 49 М.
Deploy Laravel App To Production & Set Up Staging Environment
18:19
Program With Gio
Рет қаралды 25 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 59 МЛН