remove nixpacks and add railpack
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
# nixpacks.toml
|
|
||||||
|
|
||||||
# 1. Define the build phase to compile your Astro static files
|
|
||||||
[phases.build]
|
|
||||||
cmds = ["npm run build"]
|
|
||||||
|
|
||||||
# 2. Tell Nixpacks how to run the web server and keep the container alive
|
|
||||||
[start]
|
|
||||||
cmd = "npx serve dist --port 3000"
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://schema.railpack.com",
|
||||||
|
"steps": {
|
||||||
|
"install": {
|
||||||
|
"commands": [
|
||||||
|
"npm install"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"step": "install"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"npm run build"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"deploy": {
|
||||||
|
"startCommand": "npx serve dist --port 3000"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user