-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.cr
More file actions
23 lines (17 loc) · 577 Bytes
/
tasks.cr
File metadata and controls
23 lines (17 loc) · 577 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 `Lucky::Env#task?` in `config/env.cr`
ENV["LUCKY_TASK"] = "true"
# Load Lucky and the app (actions, models, etc.)
require "./src/app"
# 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/**"
LuckyCli::Runner.run