daniccan / multi-tenant-node-app

POC of Multi-Tenant REST Application Built on top of NodeJS
39 stars 16 forks source link

changed sequelize invoke comamnd to use npx #5

Closed mccperalta closed 3 years ago

mccperalta commented 3 years ago

Hi, I was getting the following response when invoking /api/v1/accounts/signup

{
    "status": "error",
    "data": "Command failed: node_modules/.bin/sequelize db:create --url mysql://root:my_password@127.0.0.1/tenant_5\n'node_modules' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n",
    "message": "Something went wrong!!! Please try again later."
}

Thought using npx to run the migration would be better.