Day 2 – Work Diary #3 – Setting up Laravel Jetstream & Deploying on Forge

Had a load of random tasks come into my reality today; but decided to stay focused on just building through my roadmap. I know I need to write it all down at some point but for the moment just going with the flow.

I’ve got some existing customers that’s that I need to talk to, and some tasks to complete for them. And there’s a demo to sort out for next Tuesday which is pretty much an impossible task and no idea just yet how I’m going to approach that.

For the moment I’ve got Laravel JetStream up and running. Had to do some docker tweaks to get Laravel Sail working with Postgres. JetStream gets some basic dashboard stuff up and running.

… which also has basic user functionality, and two factor auth which I will want to test to see how it works. Also browser session clearing is quite fun to have.

At any rate, I’m not sure about using JetStream totally, but for the moment it will serve a purpose. I don’t like Inertia and this would force that architecture, but I can figure it out. I also want to use my React dashboard, but I will have to also figure out the best way to integrate that. It may be that I just use the Fortify stuff and rebuild the UI and functionality. Will see.

Next is going to be hooking this up to Forge and getting deployment working.

Had to scrap the Forge server and build it again this time implicitly requesting for postgres. Have realised I am going to need alternative setup for the python API that I will be building. But will come to that when I get there.

But whilst I am doing this, I realise that I could just upgrade to Postgres 17 and see if that will work.

https://www.postgresql.org/about/news/postgresql-17-released-2936

Reprovisioned the server and got it to match the local Laravel Sail setup exactly. Needed to tweak the postgres up to 17, ubuntu to 20.04, and PHP to 8.4. This now matches the local Docker to the remote Forge server. Less likely to get random bugs that I don’t understand in the future.

Once I had done:

  • Deleted and created a new Server on Forge
    • Matched Ubuntu, PHP, Postgres versions to the local docker
  • Resynced with github repo

… finally got it up and running … and wasn’t encountering any missed migrations or server errors.

Excellent!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *