Deloy nodejs fail
nhannv9
FREEOP

6 months ago

When redeloy and build. It show error messgae

copy / /app, /.vscode/settings.json /app/settings.json

333ms

ERROR: failed to build: failed to solve: lstat /.vscode/settings.json: no such file or directory

Solved$10 Bounty

Pinned Solution

nhannv9
FREEOP

5 months ago

Ok, i resolved it, beacause i have line !.vscode/settings.json in file .dockerignore. This line were copy into app, But my source not have

10 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


nhannv9
FREEOP

6 months ago

I send my error

Attachments


6 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 6 months ago


6 months ago

Can you check if the .vscode folder exists in your Github repo? I'm assuming .vscode isnt there because it's gitignored but your project requires it for some reason


kiranchai
HOBBY

6 months ago

Would putting .vscode in the .dockerignore file help?


6 months ago

Are you the same person as "nhannv9" (original poster)?

To answer your question: probably not, if anything that would work completely against us since if the app is being built using Docker that would add another layer that ignores that folder but what we actually need is for that folder to not be ignored because something in the project files need it.

  1. Check if .vscode exists in your github repo

  2. If it doesn't exist, make sure it's not listed in your .gitignore file

Although the fact your project needs something from .vscode is already weird to me, so alternatively you can find whatever is trying to import it and consider whether it is necassery for a production build of your application


nhannv9
FREEOP

5 months ago

Ok, i resolved it, beacause i have line !.vscode/settings.json in file .dockerignore. This line were copy into app, But my source not have


5 months ago

Awesome, glad you solved it! So it was the case that your GitHub repo (source) didn't have it then, if I understand you correctly? Just want to make sure I know what ended up being the solution.


dev

Are you the same person as "nhannv9" (original poster)?To answer your question: probably not, if anything that would work completely against us since if the app is being built using Docker that would add another layer that ignores that folder but what we actually need is for that folder to not be ignored because something in the project files need it.Check if .vscode exists in your github repoIf it doesn't exist, make sure it's not listed in your .gitignore fileAlthough the fact your project needs something from .vscode is already weird to me, so alternatively you can find whatever is trying to import it and consider whether it is necassery for a production build of your application

kiranchai
HOBBY

5 months ago

Noo, Im not. I was looking through the questions and thought that maybe it will help


kiranchai

Noo, Im not. I was looking through the questions and thought that maybe it will help

5 months ago

oooh okay, thank you for helping!!!


dev

oooh okay, thank you for helping!!!

kiranchai
HOBBY

5 months ago

of course, happy to help!


Status changed to Solved noahd 6 months ago


Loading...