dragonstack-guides icon indicating copy to clipboard operation
dragonstack-guides copied to clipboard

Errors running backend

Open kanyo33 opened this issue 6 years ago • 2 comments

I tried to build the project from the ground up and cloned the project and got the same errors when i tried to run npm run configure:

[email protected] configure C:\projects\dragonstackgit\dragonstack-guides-master\backend ./bin/configure_db.sh

'.' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] configure: ./bin/configure_db.sh

It also seems like the backend is not connecting to the server properly... perhaps these two problems are linked in some way.

... found a way around it by running sh ./bin/configure_db.sh directly on git bash... npm run configure does still not work, but at least i can configure the project now and see the changes

kanyo33 avatar Jan 31 '19 20:01 kanyo33

I haven't run into this particular error, but the following steps seem to help for this kind of errors:

cd into the backend folder, and npm install (it overrides the old node_modules...)

cd into the frontend folder, and npm install (it overrides the old node_modules...)

cd into the main directory, and npm install (it overrides the old node_modules...)

npm start

Let me hear if this works for you

alfredrafael avatar Feb 02 '19 10:02 alfredrafael

Hey thanks for getting back. Unfortunately, that didn't work. The problem could be with git or postgres. I'll get back if i find the solution to the problem, but for now, I'll work around it until the problem becomes unbearable. If anyone else experiences this issue, feel free to comment and perhaps we can look together for a solution.

kanyo33 avatar Feb 08 '19 13:02 kanyo33