Skip to content
Discussion options

You must be logged in to vote

Dude, node ace generate:manifest is KILLING me. The code was already correct.

import { BaseCommand, flags } from '@adonisjs/core/build/standalone'
import {Kernel} from '@adonisjs/ace'
import {DatabaseContract} from '@ioc:Adonis/Lucid/Database'
import {ApplicationContract} from '@ioc:Adonis/Core/Application'

export default class CrawlJob extends BaseCommand {

  public static needsApplication = true

  // THIS is all that is needed
  public static settings = {
    loadApp: true,
  }

  /**
   * Choose a custom pre-defined connection. Otherwise, we use the
   * default connection
   */
  @flags.string({ description: 'Define a custom database connection for the seeders', alias: 'c' })
  pub…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@AddoSolutions
Comment options

@AddoSolutions
Comment options

Comment options

You must be logged in to vote
1 reply
@robextrem
Comment options

Answer selected by AddoSolutions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants