-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·42 lines (37 loc) · 745 Bytes
/
dev.sh
File metadata and controls
executable file
·42 lines (37 loc) · 745 Bytes
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
#!/usr/bin/bash
if [ -d dev ]; then
cd dev
else
echo "-> Creating dev project"
mkdir dev
cd dev
cat >package.json <<EOF
{
"name": "directus-extension-generate-types-dev"
}
EOF
cat >.env <<EOF
DB_CLIENT="sqlite3"
DB_FILENAME="dev-data.db"
PUBLIC_URL="http://localhost:8055"
HOST="localhost"
KEY="_"
SECRET="_"
ADMIN_EMAIL="admin@example.com"
ADMIN_PASSWORD="admin"
EOF
yarn add directus --ignore-engines
yarn directus bootstrap
mkdir -p extensions
ln -s ../.. extensions/directus-extension-generate-types
echo
fi
echo "-> Building extension"
(cd .. && yarn build)
echo
echo "-> Starting dev server"
echo " You can log in with:"
echo " email: admin@example.com"
echo " pw: admin"
echo
yarn directus start