Тёмный

Building a Laravel app binary using Franken PHP - standalone dependency free binary 

Amitav Roy
Подписаться 19 тыс.
Просмотров 8 тыс.
50% 1

In this tutorial, we're diving into the fascinating world of building a Laravel app binary using Franken PHP - a standalone, dependency-free binary. Join us as we explore the power of Docker multi-stage builds to seamlessly construct a single, compact binary file, unleashing efficiency and portability.
🛠️ Key Points Covered:
Franken PHP Magic: Witness the innovative approach of creating a standalone, dependency-free binary using Franken PHP, providing a streamlined solution for packaging Laravel applications.
Docker Multi-Stage Build: Learn the intricacies of Docker's multi-stage build feature, optimizing the construction process and ensuring a minimalistic, efficient final binary.
Single Binary Awesomeness: Explore the advantages of having a single binary file for your Laravel app, enhancing deployment, distribution, and overall management.
👨‍💻 Hands-On Demonstration:
Follow along as we guide you through the step-by-step process of building a Laravel app binary. Whether you're a seasoned developer or just starting with Laravel, this tutorial is tailored to empower you with the skills to create efficient, standalone binaries.
You can find me on:
Twitter: / amitavroy7​
Discord: / discord

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

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@VaibhavrajRoham12
@VaibhavrajRoham12 8 месяцев назад
Didn't get the time earlier to look into when it was published on twitter. Thanks much for detailed video bro, that helps!
@amitavroydev
@amitavroydev 8 месяцев назад
Glad I could help!
@abduljabbar9541
@abduljabbar9541 5 месяцев назад
Interesting. Really interesting. By the way, can I upload some images to the public folder of my laravel app when running the standalone binary of my laravel app? How to do that?
@amitavroydev
@amitavroydev 5 месяцев назад
Yes, you can configure volumes
@0xcodeboy
@0xcodeboy 8 месяцев назад
You are beautiful detail, thanks for frankenphp
@amitavroydev
@amitavroydev 8 месяцев назад
Good to know you liked the details. I thought it was becoming too long. Thanks for the feedback
@praweewongsa
@praweewongsa 3 месяца назад
awesome!!
@amitavroydev
@amitavroydev 3 месяца назад
Glad that you liked it.
@L1amH3ia
@L1amH3ia 6 месяцев назад
so good video 🎉
@amitavroydev
@amitavroydev 6 месяцев назад
Thank you! 😃
@vugarkhalil
@vugarkhalil 8 месяцев назад
Respect
@amitavroydev
@amitavroydev 8 месяцев назад
Thanks
@getinvitationnet5288
@getinvitationnet5288 7 месяцев назад
what about the upload file func? how to route storage locations ? pls make another tutorial ! tks
@amitavroydev
@amitavroydev 7 месяцев назад
hmm, need to chk
@enrica6616
@enrica6616 6 месяцев назад
Why did you change the path from "/app/public" to "/app" only? The index.php is in public folder by default.
@amitavroydev
@amitavroydev 6 месяцев назад
Can you share the time stamp so that it is easier
@mityukov
@mityukov 4 месяца назад
Because webserver would try to access /app/public/index.PHP, and if you map your local ./public to container's/app/public, the webserver would not find another public inside of it. So, you map your project root to /app/, an your project has public inside of it, so, this project's public becomes available at container's /app/public 😂
@learningcity-in
@learningcity-in 7 месяцев назад
how can i use this on my linux vps?
@amitavroydev
@amitavroydev 7 месяцев назад
Once you build the binary, you can run that
@learningcity-in
@learningcity-in 7 месяцев назад
@@amitavroydev so afer building the binary I will deploy it normaly as I deploy normal laravel project.. no need to add extra dependency on Linux server
@amitavroydev
@amitavroydev 7 месяцев назад
@@learningcity-in try this look link Should help you understand how it works frankenphp.dev/docs/embed/
@pavlobezdvernyi9348
@pavlobezdvernyi9348 8 месяцев назад
Awesome! Did you play with env variables? will it read them from ubuntu alpine?
@amitavroydev
@amitavroydev 8 месяцев назад
Read env from alpine as in? When the binary is created, the env is inside the binary.
@pavlobezdvernyi9348
@pavlobezdvernyi9348 8 месяцев назад
@@amitavroydev Thanks! Do you know how to combine frankenPHP and laravel octane?
@amitavroydev
@amitavroydev 8 месяцев назад
No, I have not tried that yet. I know it is now officially supported
@abduljabbar9541
@abduljabbar9541 5 месяцев назад
@@pavlobezdvernyi9348 A video is available now on laravel official channel I think.
@pabloripoll
@pabloripoll 2 месяца назад
PHP is an interpreter language that executes / run C program. So, the common layers are: O.S., C, PHP. Now FrankenPHP is proposing one more layer: O.S., GO, C, PHP? And still needs Docker to be containerised? I read the docs and the only intrigue feature is "Boot your app once, it stays in memory" - but actually this is already possible with memcache and it is better to preserve memory for other processes. This one of the core concepts of PHP. - I don't get it :/
@amitavroydev
@amitavroydev 2 месяца назад
Well two things 1. The docker container has lesser dependency 2. I have read some stats where many found to be faster
@paulobitfranca
@paulobitfranca 5 месяцев назад
Hi. I'm trying to run the frankphp in a different port. Is it possible to specify a port different from default (80) on run it? Thanks
@amitavroydev
@amitavroydev 5 месяцев назад
You can configure the port Franken will run on 80. But you can specify on which port of host it should map to.
@paulobitfranca
@paulobitfranca 5 месяцев назад
@@amitavroydev I forgot to mention... I'm using the Frankphp standalone binay, not docker.
@amitavroydev
@amitavroydev 5 месяцев назад
@@paulobitfranca Oh then even I am not sure how that would work.
@abduljabbar9541
@abduljabbar9541 5 месяцев назад
@@paulobitfranca Interesting. How do you run it? On a linux host?
@juve1911
@juve1911 4 месяца назад
sorry i am getting could not find driver SELECT * FROM `sessions` WHERE `id` = xd0AzmSFKjtVe2IJM5H9PngCDkquuRcDPYbbZ6Ed limit 1
@amitavroydev
@amitavroydev 4 месяца назад
Could not find drive will typically come when the database pdo is missing. For example, for PHP to use MySQL, you need MySQL and pdo _mysql. Similarly for postgres you need the main binary and the pdo See if you have that.
Далее
Building desktop apps with PHP - Marcel Pociot
47:40
Decompress small game, have time to play it!
00:35
Просмотров 10 млн
Realtime with Laravel Reverb
1:19:36
Просмотров 8 тыс.
PHP doesn't suck (anymore)
10:48
Просмотров 205 тыс.
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 94 тыс.
Rust For PHP Developers
59:42
Просмотров 25 тыс.
PHP on the frontend! No more Javascript!
14:47
Просмотров 122 тыс.
Decompress small game, have time to play it!
00:35
Просмотров 10 млн