coltonidle
Hosting my first vue website
I've used railway for services (mostly java/kotlin) on railway. now i want to deploy a vue template that i downloaded. i put the project on my github and then connected that to railway. but failed to deploy due to:
Nixpacks build failed
╔════════ Nixpacks v1.24.0 ═══════╗
║ setup │ nodejs_18, npm-9_x ║
║─────────────────────────────────║
║ install │ npm ci ║
║─────────────────────────────────║
║ build │ npm run build ║
║─────────────────────────────────║
║ start │ ║
╚═════════════════════════════════╝
Error: No start command could be found
I thought railway was supposed to be able to auto-configure nixpacks/config due to project setup. I'm assuming it can do this for vue, but since this is my first time where im not hosting a rest api, i figured id reach out to see if im doing something dumb
11 replies
Can I define two separate services in my railway.json
I currently have
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "./gradlew -p server clean build -x check -x test"
},
"deploy": {
"startCommand": "java $JAVA_OPTS -jar server/build/libs/*-all.jar"
}
}
but now I'd like my single github repo to host two java services. I named my new service directory "server2". My first service name exist in "server" directory (as you can see in the json)
What's the best way to go about this? Thanks
41 replies
New to backend dev, what's the TLDR for adding a database to my jvm backend hosted on railway?
New to backend dev (android/kotlin dev originally) and I'm using ktor to handle some basic incoming routes at the moment. Easy stuff. I want to now be able to take an incoming route POST request and insert it into a basic sql/sqlite database (not really married to what db. ive used sqlite on android because it comes out of the box). What's the tldr for doing that on railway?
85 replies