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.
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
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
Can you edit the nginx config for the site or is it all just GUI?
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.
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.
In the title, changed "gothub" to "github"
(Or is gothub the latest and greatest?)
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.