app not accessible

martinerkoHOBBY

4 days ago

Hi, I have deployed simple static website served using Caddy but the domain assigned is returning 404:

I have tested caddy command locally and it works fine.

Can you please advise what is wrong?

$10 Bounty

4 Replies

echohackEMPLOYEE

3 days ago

Heya,

Your app is live and serving traffic but you don't have an endpoint for / configured.

```
Starting Container

using provided configuration

Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies

admin endpoint disabled

automatic HTTPS is completely disabled for server

started background certificate maintenance

cleaning storage unit

finished cleaning storage units

server running

serving initial configuration

handled request

handled request

handled request

handled request

handled request
```

You can see it's handling requests, there's just nothing to serve.

You'll need to configure your application to serve something at the root.


Status changed to Awaiting User Response railway[bot] 3 days ago


echohack

Heya,Your app is live and serving traffic but you don't have an endpoint for / configured.```Starting Containerusing provided configurationCaddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistenciesadmin endpoint disabledautomatic HTTPS is completely disabled for serverstarted background certificate maintenancecleaning storage unitfinished cleaning storage unitsserver runningserving initial configurationhandled requesthandled requesthandled requesthandled requesthandled request```You can see it's handling requests, there's just nothing to serve.You'll need to configure your application to serve something at the root.

martinerkoHOBBY

3 days ago

Hi @echohack,

here is a snippet from my Caddyfile,
I previously had it as
`root * public`
now changed to full path in my monorepo

`root * apps/some-project-folder/public`
none of that works.

Attachments


Status changed to Awaiting Railway Response railway[bot] 3 days ago


3 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 3 days ago


martinerkoHOBBY

3 days ago

any guide you can point me out to show how to deal with monorepos and Caddy in railway?


idiegea21HOBBY

3 days ago

Your Caddy server is running but not finding files to serve at the root path (/). The issue is likely with:

  1. Incorrect root directory path in your Caddyfile

  2. Railway's working directory vs your file structure

  3. Caddyfile syntax issues

    can you provide me with your Your current Caddyfile (complete file) & Your monorepo directory structure


app not accessible - Railway Help Station