How can i open my app using pubic link generated by Railway app. as I am getting in my logs.
audumber3000
HOBBYOP

2 years ago

educrat-react@0.0.0 preview

vite preview

➜ Local: http://localhost:6173/

➜ Network: http://172.17.3.223:6173/

0 Replies

audumber3000
HOBBYOP

2 years ago

where to find project Id


brody
EMPLOYEE

2 years ago

you are trying to run a development server


audumber3000
HOBBYOP

2 years ago

"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},


audumber3000
HOBBYOP

2 years ago

I am running Preview after build


brody
EMPLOYEE

2 years ago

thats not something you would want to do, it would be costly and unstable


brody
EMPLOYEE

2 years ago

copy the nixpacks.toml and Caddyfile from this repo into your project and remove any custom start commands you may have set


audumber3000
HOBBYOP

2 years ago

ohk i will do but i should still use build command right ?


brody
EMPLOYEE

2 years ago

yes


audumber3000
HOBBYOP

2 years ago

ohk i will try


audumber3000
HOBBYOP

2 years ago

[stage-0 14/15] RUN caddy fmt --overwrite Caddyfile

21 0.426 Error: reading input file: open Caddyfile: no such file or directory

21 ERROR: process "/bin/bash -ol pipefail -c caddy fmt --overwrite Caddyfile" did not complete successfully: exit code: 1

[stage-0 14/15] RUN caddy fmt --overwrite Caddyfile:

0.426 Error: reading input file: open Caddyfile: no such file or directory

Dockerfile:34

32 | # fmt phase

33 | COPY . /app/.

34 | >>> RUN caddy fmt --overwrite Caddyfile

35 |

36 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c caddy fmt --overwrite Caddyfile" did not complete successfully: exit code: 1

Error: Docker build failed


audumber3000
HOBBYOP

2 years ago

my deployment is failing


brody
EMPLOYEE

2 years ago

did you forget to copy the Caddyfile?


audumber3000
HOBBYOP

2 years ago

No i have added canddyfile


brody
EMPLOYEE

2 years ago

please double check


audumber3000
HOBBYOP

2 years ago

ohk i will delete the service and deploy the repo again


brody
EMPLOYEE

2 years ago

why?


brody
EMPLOYEE

2 years ago

did you make a typo with the Caddyfile?


audumber3000
HOBBYOP

2 years ago

This my folder structure , No i have download your and pasted here

1247033869757059000


audumber3000
HOBBYOP

2 years ago

Here is the toml file code for candy

download and untar caddy

[phases.caddy]
dependsOn = ['setup'] # make sure this phase runs after the default 'setup' phase
cmds = [
'curl -fsSLo caddy.tar.gz "https://github.com/caddyserver/caddy/releases/download/v${CADDYVERSION}/caddy${CADDYVERSION}linuxamd64.tar.gz"', # download the caddy release specified by 'CADDYVERSION' from GitHub
'tar -zxvf caddy.tar.gz caddy', # only extract 'caddy' from the tarball
'chmod +x caddy' # enable file execution for caddy, needed to execute downloaded files
]


audumber3000
HOBBYOP

2 years ago

should i change anything here due to my folder structure ?


brody
EMPLOYEE

2 years ago

that says Caddyfile.txt


brody
EMPLOYEE

2 years ago

thats also not the full nixpacks.toml file


audumber3000
HOBBYOP

2 years ago

what the extention for CaddyFile ?


audumber3000
HOBBYOP

2 years ago

No actullay i have just pasted caddyfile code here in discort. I have copied the entire file in my project.


brody
EMPLOYEE

2 years ago

there is none


audumber3000
HOBBYOP

2 years ago

Ohk got it


audumber3000
HOBBYOP

2 years ago

Hey @Brody thanx


audumber3000
HOBBYOP

2 years ago

but now i my live link is not working



audumber3000
HOBBYOP

2 years ago

this are logs :


audumber3000
HOBBYOP

2 years ago

using provided configuration

admin endpoint disabled

automatic HTTPS is completely disabled for server

started background certificate maintenance

unable to get instance ID; storage clean stamps will be incomplete

server running

serving initial configuration

cleaning storage unit

finished cleaning storage units


brody
EMPLOYEE

2 years ago

works fine for me?


brody
EMPLOYEE

2 years ago

is this just a template page?


audumber3000
HOBBYOP

2 years ago

1247044906921492700


audumber3000
HOBBYOP

2 years ago

I am getting like this


audumber3000
HOBBYOP

2 years ago

No


brody
EMPLOYEE

2 years ago

respectfully, a company that Amazon and AMD trusts would not be here in discord asking for help on how to host their site, it is incredibly suspicious unless this is a template page


audumber3000
HOBBYOP

2 years ago

Yes its template bro


Loading...