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

teos_97's avatar

Codestar AWS

Hello everyone, Firstly I would like to apologise for possibly posting this thread on the wrong channel. Secondly, a small introduction about myself, I am last year student working on my major computing project, which I have choose to build using Laravel and I can't express how helpful laracast is in helping me learn and build my project.

The project : Part of the project I build, includes a forum, so I have been following How to build a forum using TDD development course here on laracast.

The issue I am experiencing isn't related to the course itself, but it has to do with git and remote servers.

I am trying to essentially develop the project on my local machine, as I have been doing so far, but when I commit the changes to my github branch, I want to have a remote server that will pick-up on the repository changes from github and reflect the on the " public " server that I can access from anywhere.

I've found an article post that explains a way to do this using the bitnami LAMP stack and a VM Box, but I found that 'd have to change my current setup, which is something I'd rather avoid as I am quite comfortable with it.

Next, another "option" is to use Ec2 beanstalk but the problem is that I' d have to manually upload the changes? This from what I understood also requires that I updated my database config files, so that it uses the server superglobals that AWS RDB uses to manage the instance.

Lastly, the option that seems to incorporate everything I want is AWS codeStar. It provides a way of setting up a project and it also tracks commits from github or the aws code commit to update the changes on the instance.

I'd love if anyone has done a setup like. this before, to provide some guidelines about prerequisites that allow github to be connected to aws (currently it keeps giving me an error that the member user has to match a regex ), and also once you have it up and running, how do you go about running the migrations, env configs etc.

If there are other solutions you are using to achieve a similar setup, I would be greatful to read them. Thank you !

0 likes
3 replies
bobbybouwmann's avatar
Level 88

Well, actually Laravel offers something for this called Forge. The idea is that they spin up a server at the provider you like (for example, DigitalOcean or AWS) and set up the server so it has PHP, a database, Redis, and so on.

Then you can create a new site in there that is connected to a git repository from Gitlab, Github or Bitbucket. From there you can deploy your application and get everything up and running.

Forge also offers a need feature that whenever you push code to a certain branch, it will automatically deploy that branch on the server. Whenever you commit something your git provider will send out a webhook to other parties so they are notified to perform some action based on the updated branch. This is how Forge is doing this as well. A nice feature from Forge is that they do it all automatically for you, so no configuration required from your end.

Anyway, you can learn about Forge here: https://laracasts.com/series/learn-laravel-forge

Note that Forge will cost you some money to run, but it's definitely worth it. You can set all this up yourself as well, but that requires a lot of custom scripts or tools like AWS CodeStar. However, you also pay for these services.

1 like
teos_97's avatar

Thank you very much, great answers this will definitely solve my problem ! I am so glad I asked

Please or to participate in this conversation.