R
Railwayā€¢8mo ago
m1rza

SpringBoot and Vue3, separate repos

PID: 316b545c-54be-4dbc-a060-bd5b8345755a Hi, I'm struggling to get my Vue repo to build and deploy in Railway. I started out with a monorepo of two modules (didn't know better) and separated them into two repos to have it be compatible with Railway. I've tried different POMs, no POM, searching for similar issues. Nothing worked for me. Right now I'm getting this error [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm run build) on project m1rza-sp-frontend: Failed to run task: 'npm run build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1] which then causes more errors resulting in Error: Docker build failed. The execution of npm install seems to have worked though. I'd appreciate it if someone could point me in the right direction.
108 Replies
Percy
Percyā€¢8mo ago
Project ID: 316b545c-54be-4dbc-a060-bd5b8345755a
Brody
Brodyā€¢8mo ago
care to share your two repos?
root
rootā€¢8mo ago
Actually, a monorepo would have worked fine, most likely - just set the root directory.
Brody
Brodyā€¢8mo ago
you handle the java app, I'll handle the vue3 app šŸ¤
root
rootā€¢8mo ago
It looks like you're using Maven to build your frontend? If you're using two separate repos, you should consider using Vite sorry, I couldn't help noticing how did I end up as the Java guy, anyway? I don't think I even wrote the provider oh right the templates
Brody
Brodyā€¢8mo ago
exactly, I have the front-end templates so that's my thing šŸ¤£
m1rza
m1rzaā€¢8mo ago
Hello @Brody and @aleks, thanks for the quick response. I posted this issue and fell over asleep. šŸ˜„ I actually have 3 repos: 1 monorepo with SB and Vue, and 2 separate repos. I'm flexible on which to use. Ye, I've never really worked with frontend till now, so Idk a lot about frontend build tools and such.
m1rza
m1rzaā€¢8mo ago
frontend pom. It doesn't even need to be a Maven build, I picked Maven because some guide had me make a multimodule repo with maven and promised it "just works" but then it didn't "just work" so I thought I'd make it work by splitting the thing into two repos and two services.
m1rza
m1rzaā€¢8mo ago
How do I do that without making it completely public for everyone?
Brody
Brodyā€¢8mo ago
let's go ahead and use your isolated monorepo, so you can add us to the repo? my gh username is brody192 (I forgot alek's username)
m1rza
m1rzaā€¢8mo ago
aight, thats good, adding added in the monorepo mvn build fails with
m1rza
m1rzaā€¢8mo ago
No description
Brody
Brodyā€¢8mo ago
screenshot of the railway project please
m1rza
m1rzaā€¢8mo ago
this? monorepo + two standalone repos
No description
m1rza
m1rzaā€¢8mo ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Want results from more Discord servers?
Add your server