sidpalas / devops-directive-docker-course

Companion repo for complete Docker course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting 'DATABASE_URL' is not recognized as an internal or external command on running make run-api-node command

ankitr21 opened this issue · comments

PS D:\dockerCourse\devops-directive-docker-course\05-example-web-application\api-node> cd ..
PS D:\dockerCourse\devops-directive-docker-course\05-example-web-application> make run-api-node
Starting node api
cd api-node &&
DATABASE_URL=postgres://postgres:foobarbaz@localhost:5432/postgres
npm run dev
'DATABASE_URL' is not recognized as an internal or external command,
operable program or batch file.
make: *** [run-api-node] Error 1

You're trying to run on Windows (powershell), but this command syntax is from linux. You could try to define that environment variable with the equivalent command on windows though.

Hi @rhengles can you please elaborate. which commands I need to map from linux to windows (powershell).

If you can't research how to do that on your own, you're going to face much bigger problems after that. That is quite a basic thing to ask chatgpt, for example.

Got my mistake. Thank you @rhengles for pointing out that command syntax.