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
Project ID:
316b545c-54be-4dbc-a060-bd5b8345755a
care to share your two repos?
Actually, a monorepo would have worked fine, most likely - just set the root directory.
you handle the java app, I'll handle the vue3 app š¤
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
exactly, I have the front-end templates so that's my thing š¤£
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.
How do I do that without making it completely public for everyone?
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)
aight, thats good, adding
added
in the monorepo mvn build fails with
![No description](https://cdn.answeroverflow.com/1203724372716683294/image.png)
screenshot of the railway project please
this?
monorepo + two standalone repos
![No description](https://cdn.answeroverflow.com/1203725798318669834/image.png)
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.