2 years ago
educrat-react@0.0.0 preview
vite preview
➜ Local: http://localhost:6173/
➜ Network: http://172.17.3.223:6173/
38 Replies
2 years ago
you are trying to run a development server
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
2 years ago
thats not something you would want to do, it would be costly and unstable
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
2 years ago
yes
[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
2 years ago
did you forget to copy the Caddyfile?
2 years ago
please double check
2 years ago
why?
2 years ago
did you make a typo with the Caddyfile?
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
]
2 years ago
that says Caddyfile.txt
2 years ago
thats also not the full nixpacks.toml file
No actullay i have just pasted caddyfile code here in discort. I have copied the entire file in my project.
2 years ago
there is none
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
2 years ago
works fine for me?
2 years ago
is this just a template page?
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

