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
2 answers

Set timezone AdonisJs V5

I'm getting a hard time on change a timezone on AdonisJs 5. PORT=8080 HOST=0.0.0.0 NODE_ENV=development APP_KEY=blablablabla DRIVE_DISK=local TZ=America/New_York I have tried the code above, but nothing changes. Anyone have an idea on how to set…
Zeno Veiga
  • 61
  • 1
  • 2
0
votes
1 answer

Not working Deployment Adonis.js 5 on iis server

Exception: E_INVALID_ENV_VALUE: Value for environment variable "PORT" must be numeric, instead received "\.\pipe\220cc144-9315-426f-89af-5ade1dc12879" at C:\Project\adonis-mail\adonis-mail\server.ts(anonymous):21 16 17 sourceMapSupport.install({…
0
votes
1 answer

AdonisJs nested relationships

Have try to create and nested relation with adonisjs. Invoice -> hasMany -> InvoiceDetails -> belongsTo -> product This is the Laravel query that works! Invoice::with('invoiceDetails.product')->get(); These are my relations Invoice…
0
votes
0 answers

vuejs showing "undefined" for dropdown select options when using it In AdonisJS Framework

In AdonisJS, I can't figure out why i keep getting "undefined" in my dropdown menu. My form uses the v-for directive to loop through "test" which is an array of objects, so i am expecting the dropdown to show the item.name but it shows "undefined".…
0
votes
1 answer

docker Cannot find module '/var/www/server/build/app/Controllers/Http/UploadController'

i am using adonis js in my server side project ,i followed one of adonis js official docs to deploy using pm2 module ,i successfully run outside my docker but i am getting error only inside my project. i checked into my docker image everything…
Balaji
  • 9,657
  • 5
  • 47
  • 47
0
votes
0 answers

MODULE_NOT_FOUND ERROR WHEN SEND AN EMAIL

Good evening guys, i'am trying to send an email by with an request, using AdonisJS and mailgun but when, i sende in my insomnia evertyhing works fine, with status 200, but in my terminal an error appears and the email is not sent the error code:…
user14934504
0
votes
3 answers

Adonisjs last update (v5) model create command Not working

Adonisjs v5 Create a controller command work fine. node ace make:controller Posts But Create a new model Command not working node ace:make model Post Run the make model command show error Cannot find module…
Jamil Ahmed
  • 284
  • 3
  • 17
0
votes
2 answers

Adonis.js api delete route is not working

I tried to hit a specific route: http://127.0.0.1:3333/store/products?productId=4 but the server give me this error: "message": "E_ROUTE_NOT_FOUND: Cannot DELETE:/store/products", "stack": "HttpException: E_ROUTE_NOT_FOUND: Cannot…
Ashok Singh
  • 33
  • 11
0
votes
0 answers

Google cloud build fails

I have an adonis app that I'm trying to deploy to google cloud by mirroring a gitlab repo. I have my cloudbuild.yaml files set up and have deployed different builds of this app in the past but for some reason now I get this error when trying to…
0
votes
1 answer

Email array validation Adonis js

I am trying to validate the email array. Can I use this method validate for email, but I Can't Get Any result and I use adonis 4.1.0 I return mail_array_check it is getting an error message but all mails are correct it is getting correct…
Ruwan Bandara
  • 55
  • 1
  • 9
0
votes
1 answer

Handle response in AdonisJs middleware

I'm trying to log all the inbound requests into my database. To do so I've created a Middleware where I fire an event with the data and then a Listener that processes the data and saves it in the db. I'm able to log all the request information but…
Agilulfo
  • 101
  • 3
  • 10
0
votes
0 answers

How can set in session a user authenticated under a external API using AdonisJs?

I have a AdonisJS view module that use an external API to authenticate. But Don't know how can set this user in my auth object. async login({ request, response, session, auth }){ const {email, password} = request.only(['email',…
0
votes
2 answers

Adonis ace migration on Docker - SyntaxError: Unexpected identifier

I'm getting this error "SyntaxError: Unexpected identifier" when I try to run node ace migration:run --force /app/startup.sh:3 . node ace migration:run --force ^^^ SyntaxError: Unexpected identifier at wrapSafe…
Evandro Pomatti
  • 13,341
  • 16
  • 97
  • 165
-1
votes
1 answer

How can i deploy Adonis-js 5 on Digital Ocean

I am trying to deploy Adonisjs 5 API using on Digital Ocean. I encountered an error relating to .env. Below is the code bbase of the error. gmh@ubuntu-gmh:~/www/gmh-api$ cd build gmh@ubuntu-gmh:~/www/gmh-api/build$ node ace migration:run --force …
-1
votes
1 answer

how to convert snake casing to camel casing in adonis lucid database field

I have created migration in camel casing but when i run migration it will automatically convert it into a snake casing. how i can make it camel case by default. public async up() { this.schema.createTable(this.tableName, (table) => { …
Mradul Jain
  • 62
  • 12