Questions tagged [adonisjs-ace]

AdonisJS Ace is the command line component for AdonisJS.

Ace is command line framework embedded into AdonisJS for creating CLI commands.

The project is under active development at github.com/adonisjs/ace.

62 questions
0
votes
1 answer

Adonis and PostgreSQL: create table "adonis_schema"... fails with 'permission denied for schema public'

I have been following the dockerizing-adonis tutorial which uses PostgreSQL as database. I am new to Postgres and do not completely understand its user/role/schema concepts yet. In the tutorial pretty early on I'm instructed to create…
IARI
  • 1,217
  • 1
  • 18
  • 35
0
votes
1 answer

Socket closed abruptly during opening handshake: rabbitmq using adonisjs 5 connection fail

I'm using node 14.17.0 and adonisjs 5.8.5. This is my rabbitmq .env : RABBITMQ_HOSTNAME=localhost RABBITMQ_USER= RABBITMQ_PASSWORD= RABBITMQ_PORT=15672 RABBITMQ_PROTOCOL= 'amqp://' I try sendToQueue. But I get that's error. Anyone can help?
Aris Laode
  • 81
  • 1
  • 3
0
votes
1 answer

adonisjs self relationship return null or []

I'm trying to create a self-relationship/subcategory using Adonisjs, but it returns the result []/null. is there any solution? models @column() public categoryId: string @hasMany(() => Category) public subCategory: HasMany
Soelllll
  • 3
  • 2
0
votes
1 answer

Error when trying to run adonis JS migration

Error is displayed when trying to run the migration. I'm using the migration created by Adonis Auth himself. In which the token table is created. The error is shown when trying to create this table and mariadb immediately closes. I'm using…
marcelo.delta
  • 2,730
  • 5
  • 36
  • 71
0
votes
0 answers

AdonisJs cannot find module when deploy in docker

I use adonisJs make api to connect with database i have a route and call controller to do operation with database it's work when i run locally (node ace serve --watch) but when i try to run this code in container (docker) all route works but there…
sattha14902
  • 51
  • 1
  • 7
0
votes
1 answer

Why return is not read in transactions?

My code like this : public async update(params: any) { await Database.transaction(async (trx) => { const data = await Period.findOrFail(params.id, { client: trx }) data.from = params.from data.to = params.to data.desc =…
0
votes
1 answer

Cannot read properties of undefined (reading 'has') error /AdonisJs

An error occurs when i use to show flash message in view adonis js @if(flashMessages.has('errors.title'))

{{ flashMessages.get('errors.title') }}

@endif Cannot read properties of undefined (reading 'has')
0
votes
1 answer

No import statement working in adonisjs controller

As per the documentation I try to import this statement at the beginning of AuthenticationController.js for the validation of incoming request payload import { schema } from '@ioc:Adonis/Core/Validator' Then it arise an 'Internal server error with a…
Sazzad
  • 176
  • 1
  • 9
0
votes
1 answer

Error when start adonis - Error: Cannot find module '/app/node_modules/@poppinss/file-generator/index.js'

When I start node ace serve --watch Error: Cannot find module '/app/node_modules/@poppinss/file-generator/index.js'. Please verify that the package.json has a valid "main" entry What is actually @poppinss/file-generator ? why adonis search index.js…
ian narsa
  • 1
  • 2
0
votes
1 answer

Run first migration SQLite with Adinis 5 - Cannot find module '@vscode/sqlite3'

When i run this command "node ace migration:run" the terminal show me this error: Knex: run $ npm install sqlite3 --save Cannot find module '@vscode/sqlite3' ... ... ... I am using Adonis JS 5 but the SQLite database is not working. Any idea what it…
0
votes
1 answer

Path Error running AdonisJS in production via Docker

I'm getting a path error from require-ts and I have no idea how to determine what I'm missing. The app works fine locally using node ace serve but not within docker on a production server. This is the error: docker exec -it adonis_app node ace…
deadlysyntax
  • 183
  • 10
0
votes
0 answers

AdonisJS migration to postgresql /kubernetes

hello i am new in kubernetes and i test the deployment of a small app in adonis js with db postgresql , so i want to know how to make a migration of the model present in adonis js automatically after the deployment of the pods and the services Thank…
Ilyes Elayeb
  • 115
  • 1
  • 10
0
votes
1 answer

How to schedule an adonisjs command with plesk scheduler?

I have this created command called 'newsletter'. When I call 'adonis newsletter' on local, it works just fine. But when I try to run with scheduler on plesk with 'cd httpdocs; node ace newsletter', it was completed with this…
FK Rima
  • 3
  • 4
0
votes
1 answer

node ace build --production, [ error ] "build" command not found error on Digital Ocean Apps

When trying to configure an application with the following deploy commands: Build Command npm run build Run Command node build/server.js The following error is thrown: clinica-medica-backend@1.0.0 build node ace build --production [ error ] "build"…
0
votes
1 answer

ADONISJS: validate some data outside the HTTP request in

This is my validator class import { schema, rules } from "@ioc:Adonis/Core/Validator"; import { HttpContextContract } from "@ioc:Adonis/Core/HttpContext"; export default class CreateUserValidator { constructor(protected ctx:…
Smit Gajera
  • 1,001
  • 1
  • 8
  • 26