-
Notifications
You must be signed in to change notification settings - Fork 227
/
snipdoc.yml
134 lines (130 loc) · 5.08 KB
/
snipdoc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
snippets:
description:
content: 🚂 Loco is Rust on Rails.
path: ./snipdoc.yml
help-command:
content: cargo loco --help
path: ./snipdoc.yml
exec-help-command:
content: cd ./examples/demo && cargo loco --help
path: ./snipdoc.yml
build-command:
content: cargo build --release
path: ./snipdoc.yml
quick-installation-command:
content: |-
cargo install loco-cli
cargo install sea-orm-cli # Only when DB is needed
path: ./snipdoc.yml
loco-cli-new-from-template:
content: |-
❯ loco new
✔ ❯ App name? · myapp
✔ ❯ What would you like to build? · SaaS app (with DB and user auth)
✔ ❯ Select a DB Provider · Sqlite
✔ ❯ Select your background worker type · Async (in-process tokio async tasks)
✔ ❯ Select an asset serving configuration · Client (configures assets for frontend serving)
🚂 Loco app generated successfully in:
myapp/
path: ./snipdoc.yml
postgres-run-docker-command:
content: |-
docker run -d -p 5432:5432 \
-e POSTGRES_USER=loco \
-e POSTGRES_DB=myapp_development \
-e POSTGRES_PASSWORD="loco" \
postgres:15.3-alpine
path: ./snipdoc.yml
redis-run-docker-command:
content: docker run -p 6379:6379 -d redis redis-server
path: ./snipdoc.yml
starting-the-server-command:
content: cargo loco start
path: ./snipdoc.yml
starting-the-server-command-with-environment-env-var:
content: LOCO_ENV=qa cargo loco start
path: ./snipdoc.yml
starting-the-server-command-with-output:
content: |-
$ cargo loco start
▄ ▀
▀ ▄
▄ ▀ ▄ ▄ ▄▀
▄ ▀▄▄
▄ ▀ ▀ ▀▄▀█▄
▀█▄
▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▀▀█
██████ █████ ███ █████ ███ █████ ███ ▀█
██████ █████ ███ █████ ▀▀▀ █████ ███ ▄█▄
██████ █████ ███ █████ █████ ███ ████▄
██████ █████ ███ █████ ▄▄▄ █████ ███ █████
██████ █████ ███ ████ ███ █████ ███ ████▀
▀▀▀██▄ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ██▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
https://loco.rs
listening on port 5150
path: ./snipdoc.yml
doctor-command:
content: |-
$ cargo loco doctor
Finished dev [unoptimized + debuginfo] target(s) in 0.32s
Running `target/debug/myapp-cli doctor`
✅ SeaORM CLI is installed
✅ DB connection: success
✅ Redis connection: success
path: ./snipdoc.yml
generate-deployment-command:
content: |-
cargo loco generate deployment
? ❯ Choose your deployment ›
❯ Docker
❯ Shuttle
❯ Nginx
..
✔ ❯ Choose your deployment · Docker
skipped (exists): "dockerfile"
added: ".dockerignore"
path: ./snipdoc.yml
scaffold-help-command:
content: cd ./examples/demo && cargo loco generate scaffold --help
path: ./snipdoc.yml
scaffold-post-command:
content: cargo loco generate scaffold posts
name:string title:string content:text --api
path: ./snipdoc.yml
generate-task-help-command:
content: cd ./examples/demo && cargo loco generate task --help
path: ./snipdoc.yml
run-task-command:
content: cargo loco task <TASK_NAME>
path: ./snipdoc.yml
list-tasks-command:
content: cargo loco task
path: ./snipdoc.yml
migrate-down-command:
content: cargo loco db down
path: ./snipdoc.yml
migrate-down-n-command:
content: cargo loco db down 2
path: ./snipdoc.yml
scheduler-generate-command:
content: cargo loco generate scheduler
path: ./snipdoc.yml
scheduler-list-command:
content: cargo loco scheduler --list
path: ./snipdoc.yml
scheduler-list-from-file-command:
content: cargo loco scheduler --config config/scheduler.yaml --list
path: ./snipdoc.yml
scheduler-list-from-env-setting-command:
content: LOCO_ENV=production cargo loco scheduler --list
path: ./snipdoc.yml
scheduler-run-job-by-name-command:
content: LOCO_ENV=production cargo loco scheduler --name 'JOB_NAME'
path: ./snipdoc.yml
scheduler-run-job-by-tag-command:
content: LOCO_ENV=production cargo loco scheduler --tag 'maintenance'
path: ./snipdoc.yml
cli-middleware-list:
content: cargo loco middleware --config
path: ./snipdoc.yml