Тёмный

Deploy Serverless Laravel application using bref 

CS Code
Подписаться 895
Просмотров 13 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@himanshushekharmohapatra6379
@himanshushekharmohapatra6379 3 года назад
That's cool. If you can please tell us how to connect database and change url to standard url and the automatic deployment using github.that would be great. Thank you very much
@debduttapanda2018
@debduttapanda2018 2 года назад
how to have a serverless lamp stack on was with PHP codeigniter?
@phyromphat
@phyromphat 4 года назад
I have got my serverless laravel api to work with non-secured route. However, with secured route with authorization token, it doesn't work. It seem that on lambda, it cannot read my FILE_CACERT= ../php/cacert.pem in .env file. I place the cacert.pem in php folder in the roote directory. Please advise what it could be wrong.
@karenmatala1040
@karenmatala1040 3 года назад
Thank you so much!! Merry Christmas!!
@ragnarslygaming2772
@ragnarslygaming2772 3 года назад
How to add a custom domain for this?
@greenredrose6577
@greenredrose6577 3 года назад
I have watched all your videos and learn a lot. Thanks.
@sankapalinda8859
@sankapalinda8859 3 года назад
Thank you so much, if you can please make video for DB connection with lamda
@md.saimunhossain9867
@md.saimunhossain9867 2 года назад
Please brother, make a video on how to setup MySQL RDS on serverless application. 🙏🙏 Thanks for the awesome tutorial
@elangamanir8335
@elangamanir8335 3 года назад
Hi, we followed the same configuration for deploying laravel project to aws lambda. now we are getting the following error. Error communicating with PHP-FPM to read the HTTP response. A root cause of this can be that the Lambda (or PHP) timed out, for example when trying to connect to a remote API or database, if this happens continuously check for those! Original exception message Do u have any idea to resolve this?
@ashokkumar2342
@ashokkumar2342 4 года назад
how to Custom domain names in serverless bref.sh please make tutorial
@khaerus8669
@khaerus8669 4 года назад
Hi i have following this instruction and function can running but can't connect to RDS and S3 bucket. seems .env is not created in lambda ?
@CSCode
@CSCode 4 года назад
.env will not be created in lambda, you will have to create this file and then add the credentials before deploying on lambda. If you already have this file then check your RDS credentials. Try connecting to RDS using a mysql client to see if you are able to connect. Also check if you are using correct AWS region in .env file.
@khaerus8669
@khaerus8669 4 года назад
@@CSCode Thanks man, but for connecting to RDS in env db_host using ip address or endpoint?
@Ninja-yt2qs
@Ninja-yt2qs Год назад
my css didnt load
@syaifudinlatief7472
@syaifudinlatief7472 3 года назад
thanks bro your video is awesome
@rohailarshad3985
@rohailarshad3985 3 года назад
Awesome and super easy.
@akhileshsaini1961
@akhileshsaini1961 3 года назад
Can you please provide me info how to connect remote mysql db and how to set cron job for this application?
@akhileshsaini1961
@akhileshsaini1961 3 года назад
?
@krdesigns
@krdesigns 4 года назад
getting error message when I try to run "composer require bref/bref bref/laravel-bridge" it stated that "Package bref/laravel-bridge at version has a PHP requirement incompatible with your PHP version (7.2.24)" any idea?
@CSCode
@CSCode 4 года назад
You need php version 7.2 or higher installed on your system for using this package.
@krdesigns
@krdesigns 4 года назад
@@CSCode I did running 7.2.24
@jacksmith5845
@jacksmith5845 2 года назад
can you please show how to add custom domain in this ?
@chittaranjanmaity9806
@chittaranjanmaity9806 3 года назад
How to connect mongo atlas with aws lambda in laravel .. Please create one video....
@phyromphat
@phyromphat 4 года назад
Great video. However, I have encountered an error "There is no existing directory at "/var/task/storage/logs" and it could not be created: Read-only file system". I cann't fix the issue even though I set APP_LOG=errorlog in .env file. Please advice what I may have missed.
@CSCode
@CSCode 4 года назад
check if you have added LOG_CHANNEL=stderr in .env file? You can remove APP_LOG unless your app has a specific requirement.
@phyromphat
@phyromphat 4 года назад
@@CSCode Here are the changes that I have made to .env file. CACHE_DRIVER=array SESSION_DRIVER=cookie VIEW_COMPILED_PATH=/tmp/storage/framework/views LOG_CHANNEL=stderr Please note that I have any specific requirement to use APP_LOG=errorlog. But it's due the error that is the same as medium.com/artisanhost/hosting-a-laravel-application-on-aws-lamdba-90b7133c8578 Please advise.
@phyromphat
@phyromphat 4 года назад
@@CSCode Could it be any issue if I use layers: - ${bref:layer.php-74-fpm}? That's because my PHP verison is 7.4.8
@CSCode
@CSCode 4 года назад
@@phyromphat the issue doesn't seem to be due to php version but is related to configuration. In this video, we are writing log to cloudwatch. So if you are getting this error then it looks like maybe somewhere configuration is incorrect. One more thing is that the error that you shared says that directory cannot be created, So please make sure that the log directory is part of your project but has a .gitignore file so that it's content are not being tracked in git.
@phyromphat
@phyromphat 4 года назад
@@CSCode I have managed to resolve it with additional lines of codes in bootstrap\app.php $directoryNames = ['/tmp/laravel/framework/sessions', '/tmp/laravel/framework/cache', '/tmp/laravel/framework/views']; foreach ($directoryNames as $directoryName) { if (!is_dir($directoryName)) { mkdir($directoryName, 0755, true); } } $app->useStoragePath( '/tmp/laravel' );
@GeetPurwar
@GeetPurwar 4 года назад
Great video. How do I deploy queue and assets to lambda?
@CSCode
@CSCode 4 года назад
you have to upload assets separately on s3 and for queue you can use SQS with lambda as worker.
@KareemAshraf91
@KareemAshraf91 Год назад
@@CSCode can you explain how as the bref Documentation gives an error , its a headache to handle the assets :(
@xantoshlamsal
@xantoshlamsal 4 года назад
I am getting no any endpoints after deploy. api keys: None endpoints: None
@CSCode
@CSCode 4 года назад
check if your serverless.yml file is indented correctly. I have given project link in description. You can refer to that as an example.
@shrutisolanki3026
@shrutisolanki3026 4 года назад
Hello, I followed all the steps and deployed but the url gives internal server error
@CSCode
@CSCode 4 года назад
I got a similar error during queue setup with serverless laravel. Mine was due to caching issue. You can check this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qThgfivpmd0.html. If you are getting the exact error then try the steps in that video.
@shrutisolanki3026
@shrutisolanki3026 4 года назад
@@CSCode I resolved that issue, but now I'm getting another error I followed all the steps and now I'm trying to access my API with the link generated, it's a simple post API to get a list which works when hosted in the local environment. It gives me the error of missing authentication token when no auth token was set by me
@shrutisolanki3026
@shrutisolanki3026 4 года назад
If I add AWS signature in the Authorization then it gives me signature we calculated does not match signature provides ,check AWS secret key and signing method , I checked the key it's correct but I've not set up any signature as I followed your tutorial the API gets hosted directly after the lambda function is created
@CSCode
@CSCode 4 года назад
@@shrutisolanki3026 try adding AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY in .env file and then try again.
@shrutisolanki3026
@shrutisolanki3026 4 года назад
@@CSCode I already tried that, it makes no difference it still gives missing authentication token error Thank you
Далее
Running Laravel on AWS Lambda with Bref
12:46
Просмотров 9 тыс.
Wait for it 😂
00:19
Просмотров 4,5 млн
Исповедь / Мася
2:47:10
Просмотров 190 тыс.
Deploy PHP Applications on AWS Lambda using Bref
50:14
Просмотров 3,1 тыс.
That's It, I'm Done With Serverless*
23:58
Просмотров 204 тыс.
What Does Serverless Mean?
8:33
Просмотров 6 тыс.
Getting Started with Serverless Framework
20:53
Просмотров 31 тыс.
Serverless PHP is pretty good
12:33
Просмотров 8 тыс.
The Ease of Deployment Tier List for Laravel Developers
21:14
Wait for it 😂
00:19
Просмотров 4,5 млн