diskfloppy.me/tasks.cr

26 lines
606 B
Crystal
Raw Normal View History

2024-09-13 11:58:12 +00:00
# This file loads your app and all your tasks when running 'lucky'
#
# Run 'lucky --help' to see all available tasks.
#
# Learn to create your own tasks:
# https://luckyframework.org/guides/command-line-tasks/custom-tasks
# See `LuckyEnv#task?`
ENV["LUCKY_TASK"] = "true"
# Load Lucky and the app (actions, models, etc.)
require "./src/app"
require "lucky_task"
# You can add your own tasks here in the ./tasks folder
require "./tasks/**"
# Load migrations
require "./db/migrations/**"
# Load Lucky tasks (dev, routes, etc.)
require "lucky/tasks/**"
require "avram/lucky/tasks"
LuckyTask::Runner.run