Skip to content

Commit 0383551

Browse files
committed
minor notes/scripts, still WIP
1 parent a6c1c20 commit 0383551

File tree

4 files changed

+185
-3
lines changed

4 files changed

+185
-3
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
Packages
21
.build
3-
xcuserdata
4-
*.xcodeproj
52
DerivedData/
63
.DS_Store
74
db.sqlite
5+
.env
6+
*.env
7+
Packages
88
.swiftpm
9+
xcuserdata
10+
*.xcodeproj
911

Package.resolved

Lines changed: 151 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TODO.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# To Do
2+
3+
- [ ] LICENSE.txt
4+
- [ ] README
5+
- [ ] CloudRun service
6+
- [ ] Github Actions
7+
- [ ] status.json: https://github.com/vapor/university/blob/main/api/Sources/App/Controllers/Tutorials.swift
8+
- [ ] redirect for '/': req.redirect(to: "/some/new/path")
9+
- [ ] error handling, logging, cors: https://docs.vapor.codes/4.0/middleware/
10+
- [ ] regex timeout

run.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
#
3+
# run server locally
4+
#
5+
6+
set -o errexit
7+
set -o pipefail
8+
set -o nounset
9+
10+
#
11+
# load an .env file if it exists
12+
#
13+
ENV_FILE="./.env"
14+
if [ -f "${ENV_FILE}" ]; then
15+
echo "INFO: loading '${ENV_FILE}'!"
16+
export $(cat "${ENV_FILE}")
17+
fi
18+
19+
swift run

0 commit comments

Comments
 (0)