@gcg@phpc.social
@gcg@phpc.social avatar

gcg

@gcg@phpc.social

CoFounder & Geek in Charge @ Poltio
.
Software Developer & DevOps Lover.
Gamer, nerd, weeb.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mikestreety, (edited ) to php
@mikestreety@hachyderm.io avatar

I'm looking for a solution to branch-based previews for a / stack. We have nearly 60 sites we want to set this up for (a lot of services I find either charge $1000s or don't even support that many).

I don't want anything fancy, I don't need to edit in the browser. I would like to push a branch to gitlab and have the option to spin up an environment to preview.

I have considered doing it myself, but I was hoping to not have to support my own infrastructure.

gcg,
@gcg@phpc.social avatar

@mikestreety @ramsey I put together something like this for internal use after seeing it how vercel handles preview urls. The github action code is open but not well documented and I use Google Cloud Run. https://github.com/Poltio/action-pr-preview It's nothing much, you can setup something similar in gitlab or any other ci/cd platform so I am sharing it as an inspiration :)

gcg,
@gcg@phpc.social avatar

@mikestreety @ramsey after reading all the different replies to your post I would like to add couple of benefits of handling this on Cloud Run:

  • scale down to 0. So you only pay if you are using it (sending it traffic.)
  • same service on cloud run can have multiple versions live. (I create 1 service per repo and multiple versions for each PR with unique urls)
  • you have the option to create/attach a DB to each version/service or use production DB .
theshaunwalker, to random
@theshaunwalker@phpc.social avatar

In real life we've accepted the norm that trades people do EITHER electrics, OR plumbing, OR plastering.

Sure sometimes get individuals who can do multiple things and thats great for them.

Yet in some software, capitalism and ineffective communication skills seem to drive the norm that engineers should do all 3.

gcg,
@gcg@phpc.social avatar

@theshaunwalker as an avid advocate for specialization for frontend or backend or devops for many years, i no longer believe we should do this anymore. in most cases for modern web/app development focusing on features instead of parts like frontend yields better outcomes from my experience.

We also have handymen that can do pretty much everything from plumbing to electrics unless it get super complicated.

gcg,
@gcg@phpc.social avatar

@theshaunwalker for the product and endusers who deal with that product.

most of the time for the developers as well imo.

gcg,
@gcg@phpc.social avatar

@theshaunwalker how about this: we should have dedicated teams for building only backend or only frontend and full stack feature devs that uses guidelines set by those devs that work on features from server to client.

theshaunwalker, to random
@theshaunwalker@phpc.social avatar

What if the responsible ethical approach to AI is keep it out of your products?

gcg,
@gcg@phpc.social avatar

@theshaunwalker using a model trained for a specific job to improve the quality is ok, like how switching to Pixel from iPhone literally removed all spam SMS and Calls from my life but yeah, please don't show a generic nlp model in products :)

gcg, to Laravel
@gcg@phpc.social avatar

In my full time job and freelance projects and side gigs, I manage / maintain a bunch of projects which consists mostly TypeScript (nextjs), Go (echo) and PHP (laravel). I strongly believe picking the right tool for the job so I can't say laravel is the best for every case but I truly believe I love working on Laravel projects the most.

https://github.com/readme/featured/laravel-community?mc_cid=52cfdee8e4&mc_eid=0f08a427d1

b0rk, to random
@b0rk@jvns.ca avatar

if you use Linux on your personal computer: what do you like about it?

I used to be super into customizing my window manager, but now I mostly like that it's so easy to install software, and that the environment is the same as on a Linux server

(please no arguing about whether people "should" use Linux on their personal computers, I'm just curious about why you personally like it)

gcg,
@gcg@phpc.social avatar

@b0rk Even after 20+ years, the idea of a new WM or DE that I've never tried will make everything N times better than it used to excites me even though most of the time I return to plain old Gnome with the theme I am using forever after couple of days of fiddling with something new :)

ramsey, to php
@ramsey@phpc.social avatar

Let’s get all controversial up in this #PHP

gcg,
@gcg@phpc.social avatar

@danb @ramsey I am very certain that the majority of PHP users are very happy and incredibly thankful for all the internals people for making the hard decisions for us and making the tools that we use everyday but loud enough as the complaining minority.

freekmurze, to random
@freekmurze@phpc.social avatar

Some first, quick thoughts around that "Laravel considered harmful" post.

👍 I think it's better to focus on the things you like rather than the things you dislike. With a positive mindset, you're likely to be more happier (and more productive).

In this particular case, I'd rather have read a post from the author on which framework he prefers, rather than which framework he doesn't like.

gcg,
@gcg@phpc.social avatar

@freekmurze Not one language or framework can be what everyone needs and it felt like the posts author was trying to operate their TV with their A/C remote and getting angry because it’s not doing what they wanted.

I agree, instead of writing long posts nit picking every detail you don’t like, just open issues or PRs to make it better for you and everyone else or just pick some other tool that suit your needs better.

ramsey, to random
@ramsey@phpc.social avatar

mod_php with httpd was awesome!

So simple and easy to use.

Why over-complicate things?

gcg,
@gcg@phpc.social avatar

@ramsey Performance and scalability basically. Not following apache lately but fpm was way way faster w/out even diving into optimizing stuff, you get nginx load balancing and caching on top of it with your setup as well.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines