federaco
federaco
RRailway
Created by federaco on 6/16/2023 in #✋|help
Is there a way to keep a folder of previous build?
I have a NodeJS project (an API), and I have a folder that holds images, I don't want that folder to be replaced/overwritten on every build, is there a way to do this?
5 replies
RRailway
Created by federaco on 5/24/2023 in #✋|help
Unable to Connect Repo to Service
I'm trying to connect a repo to my new service, but doesn't let me, I configure github with permissions to repo, but is not listed when I try to select the configured repo in the Railway UI. What could be wrong?.
4 replies
RRailway
Created by federaco on 9/26/2022 in #✋|help
NestJS Build Error
Hi, I created a Railway project with a NestJS API and a Postgres DB, it was working fine, but after a while I wanted to create a second project so I can have a test environment, I followed the same setup steps of the working project, but I can't get it working. The project was generated with the nest cli. The start command for the API is "npm install && npm run start:prod" I created an Empty Service in Railway I'm getting this error:

#11 2.235 npm ERR! code EUSAGE

#11 2.239 npm ERR!
#11 2.239 npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
#11 2.239 npm ERR!
#11 2.239 npm ERR! Missing: [email protected] from lock file
#11 2.239 npm ERR! Missing: [email protected] from lock file
#11 2.239 npm ERR! Missing: [email protected] from lock file
#11 2.239 npm ERR!
#11 2.239 npm ERR! Clean install a project
#11 2.239 npm ERR!
#11 2.239 npm ERR! Usage:
#11 2.239 npm ERR! npm ci
#11 2.239 npm ERR!
#11 2.239 npm ERR! Options:
#11 2.239 npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
#11 2.239 npm ERR! [--script-shell <script-shell>]
#11 2.239 npm ERR!
#11 2.239 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
#11 2.240 npm ERR!
#11 2.240 npm ERR! Run "npm help ci" for more info
#11 2.242

#11 2.242 npm ERR! A complete log of this run can be found in:
#11 2.242 npm ERR! /root/.npm/_logs/2022-09-24T23_56_10_362Z-debug-0.log
#11 ERROR: executor failed running [/bin/bash -ol pipefail -c npm ci]: exit code: 1
-----
> [stage-0 7/9] RUN --mount=type=cache,id=s/ca773b95-199f-4c52-94bc-3d867b679908-/root/npm,target=/root/.npm npm ci:
-----
executor failed running [/bin/bash -ol pipefail -c npm ci]: exit code: 1

Error: Docker build failed

#11 2.235 npm ERR! code EUSAGE

#11 2.239 npm ERR!
#11 2.239 npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
#11 2.239 npm ERR!
#11 2.239 npm ERR! Missing: [email protected] from lock file
#11 2.239 npm ERR! Missing: [email protected] from lock file
#11 2.239 npm ERR! Missing: [email protected] from lock file
#11 2.239 npm ERR!
#11 2.239 npm ERR! Clean install a project
#11 2.239 npm ERR!
#11 2.239 npm ERR! Usage:
#11 2.239 npm ERR! npm ci
#11 2.239 npm ERR!
#11 2.239 npm ERR! Options:
#11 2.239 npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
#11 2.239 npm ERR! [--script-shell <script-shell>]
#11 2.239 npm ERR!
#11 2.239 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
#11 2.240 npm ERR!
#11 2.240 npm ERR! Run "npm help ci" for more info
#11 2.242

#11 2.242 npm ERR! A complete log of this run can be found in:
#11 2.242 npm ERR! /root/.npm/_logs/2022-09-24T23_56_10_362Z-debug-0.log
#11 ERROR: executor failed running [/bin/bash -ol pipefail -c npm ci]: exit code: 1
-----
> [stage-0 7/9] RUN --mount=type=cache,id=s/ca773b95-199f-4c52-94bc-3d867b679908-/root/npm,target=/root/.npm npm ci:
-----
executor failed running [/bin/bash -ol pipefail -c npm ci]: exit code: 1

Error: Docker build failed
Thanks community!
39 replies