Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

andrewhood125's avatar

Fresh Debian to production Laravel in under 4 minutes. Demo of a few projects of mine.

Hey all!

I've been working on a couple tools and wanted to share and get some feedback from the community. I made a video of how one might go about building a server and deploying an app using them.

What do you think? How do you deploy?

https://www.youtube.com/watch?v=l233Aj9a1Rw

The repositories I used are : https://github.com/andrewhood125/do-debian-setup https://github.com/andrewhood125/laravel5-establish https://github.com/andrewhood125/establish

0 likes
7 replies
bashy's avatar

Cool, good job :)

Can't wait for Debian 8 (Jessie) <3

andrewhood125's avatar

I know! Me neither, we're looking at a possible release near the beginning of April.

bashy's avatar

Did you do the bash scripting yourself? I use Debian on my servers, don't particularly like Ubuntu release schedules or packages :)

Yeah saw them Tweet about it! :) I use "testing" on my home server but going to dual boot Jessie/Win7 on my PC once it's released.

andrewhood125's avatar

@bashy practically yes. I need to go back and do a proper voice over but I didn't have the time to. I have a script that I run on all fresh debian installs that just does some initial work including getting a deployer user setup. The main other script is a tool I made called establish which looks at a file called depends.sh which has the contents like... deps=(composer nginx npm ...)

It will then install all of those and there dependencies on the server.

Finally the last two small scripts, symlink does about as much as you would expect sets up a couple symlinks and deploy install does a composer install, npm install, bower install, gulp.. and I think that's it!

Oh! and as far as practically goes, theres a script to install npm provided by npm and so that is just pulled in and run. I didn't write that.

bashy's avatar

Cool stuff, I write a few bash/shell scripts to do things on my servers but I have dedicated servers so it's only a one time job where I like doing install of PHP/Nginx etc myself.

More people should use Debian so this may help :)

andrewhood125's avatar

Yeah I don't have anything against Ubuntu which is where I think a lot of the Laravel community leans, I just prefer Debian.

Please or to participate in this conversation.