0

尝试使用以下部署命令配置应用程序时:

构建命令 npm run build 运行命令 node build/server.js

抛出以下错误:

clinica-medica-backend@1.0.0 build
node ace build --production
[ error ]  "build" command not found
npm notice 
npm notice New minor version of npm available! 8.4.1 -> 8.5.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.5.1>
npm notice Run `npm install -g npm@8.5.1` to update!
npm notice 
building: exit status 1
ERROR: failed to build: exit status 1

For documentation on the buildpacks used to build your app, please see:
   Node.js: https://do.co/apps-buildpack-node

 ! Build failed (145)

如果将构建命令更改为: 构建命令 node ace

The following is shown:

Running custom build command: node ace

Available commands
  repl                   Start a new REPL session

db
  db:seed                Execute database seeder files

dump
  dump:rcfile            Dump contents of .adonisrc.json file along with                                 defaults

generate
  generate:key           Generate a new APP_KEY secret
  generate:manifest      Generate ace commands manifest file. Manifest file                              speeds up commands lookup

list
  list:routes            List application routes

make
  make:migration         Make a new migration file
  make:model             Make a new Lucid model
  make:seeder            Make a new Seeder file

migration
  migration:rollback     Rollback migrations to a given batch number
  migration:run          Run pending migrations
  migration:status       Check migrations current status.

Global Flags
  -h, --help boolean     
  -v, --version boolean

没有构建命令。

感谢帮助。

4

0 回答 0