Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


EasyPanel - need help deploying a laravel app from github
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

EasyPanel - need help deploying a laravel app from github

glitchglitch Member
edited June 15 in Help

Hi,
I've never used Easypanel before, trying for the first time.

I can not figure out how to set the webroot for the app.
I feel kind of stupid.

when creating the service, I used git as source.
the app gets copied in the /app directory and that is set as webroot.
but the webroot needs to be /app/public
How would I do that?

tried it like this, still doesn't work.

getting error:

[error] 42#42: *3 directory index of "/app/" is forbidden, client: 10.11.0.4, server: localhost, request: "GET / HTTP/1.1", host: "domain.com"

tried upload zip files instead of git as source, same issue.

Any help will be appreciated.

Comments

  • emghemgh Member, Megathread Squad

    Can you edit the nginx config for the site or is it all just GUI?

    Thanked by 1glitch
  • itachikonohaitachikonoha Member
    edited June 15

    There's a dedicated page for laravel for setting up in easy panel with examples in easy panel documentation.

    Have you tried that approach?

    Thanked by 1glitch
  • glitchglitch Member

    @itachikonoha said:
    There's a dedicated page for laravel for setting up in easy panel with examples in easy panel documentation.

    Have you tried that approach?

    yes, That's the first place I looked. it doesn't explain my scenario.

  • glitchglitch Member
    edited June 15

    @emgh said:
    Can you edit the nginx config for the site or is it all just GUI?

    Thanks. Didn't think of that.
    The config file was located in an odd location.
    nginx -t showed a location /nix/store/some-random-id-nginx-1.26.2/conf/nginx.conf
    but that was not the file that I needed.
    it was /nginx.conf

    How do I connect via sftp though?

    the service runs inside a docker container. don't want to install ftp server.

  • angstromangstrom Moderator

    In the title, changed "gothub" to "github"

    (Or is gothub the latest and greatest?)

    Thanked by 1glitch
  • glitchglitch Member

    @itachikonoha said:
    There's a dedicated page for laravel for setting up in easy panel with examples in easy panel documentation.

    Have you tried that approach?

    update:
    that page does mention adding Nixpacks specific variables for Laravel.
    but I ignored that cause I'm stupid.

    That is the proper way. Editing nginx file is not the correct way, as it will get overwritten if the app is redeployed.

    Thanked by 1emgh
  • @glitch said:

    @itachikonoha said:
    There's a dedicated page for laravel for setting up in easy panel with examples in easy panel documentation.

    Have you tried that approach?

    update:
    that page does mention adding Nixpacks specific variables for Laravel.
    but I ignored that cause I'm stupid.

    That is the proper way. Editing nginx file is not the correct way, as it will get overwritten if the app is redeployed.

    We all had been there at one point or the other. Don't beat yourself up.

    A good developer isn't only good because he knows syntaxes. But he becomes good because he also studies the documentation properly.

    Whatever platform/framework you use, try to go through documentation as much as you can. It may seem like boring, unnecessary but trust me.... It helps a LOT in long run.

    Thanked by 1glitch
Sign In or Register to comment.