Skip to content

Commit

Permalink
Merge pull request #27 from PostOwl/fly-launch
Browse files Browse the repository at this point in the history
Simplify deployment
  • Loading branch information
keybits authored Aug 3, 2023
2 parents 9986843 + eb17afc commit 26f0ab6
Show file tree
Hide file tree
Showing 15 changed files with 285 additions and 110 deletions.
23 changes: 10 additions & 13 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
fly.toml
Dockerfile
.dockerignore
# Directories
build
node_modules
.git
package

# Files
.DS_Store
build
data
/.svelte-kit
/package
.env
.env.*
.git
.env*
!.env.production
.envrc
.tool-versions
.svelte-kit
.tool-versions
data/db.sqlite3*
fly.toml
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Example .env file for development
# For production, environment variables are set in .env.production
# SvelteKit settings
ORIGIN="http://localhost:5173"

# PostOwl settings
DB_PATH="./data/db.sqlite3"
ORIGIN="http://localhost:5173"
ADMIN_PASSWORD="your-secret-password"
ADMIN_NAME="Your Name"
ADMIN_EMAIL="[email protected]"
Expand Down
6 changes: 4 additions & 2 deletions .env.production.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Example .env file for production
# SvelteKit settings
PROTOCOL_HEADER="x-forwarded-proto HOST_HEADER=x-forwarded-host"

# PostOwl settings
DB_PATH="./data/db.sqlite3"
ORIGIN="https://yourapp.fly.dev"
DB_PATH="/data/db.sqlite3"
ADMIN_PASSWORD="your-secret-password"
ADMIN_NAME="Your Name"
ADMIN_EMAIL="[email protected]"
Expand Down
18 changes: 10 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
.DS_Store
# Directories
build
node_modules
/build
/.svelte-kit
/package
.env
.env.*
package

# Files
.DS_Store
.env*
!.env.example
!.env.production.example
*.sqlite3*
fly.toml
.svelte-kit
.tool-versions
Dockerfile
fly.toml
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
30 changes: 0 additions & 30 deletions Dockerfile

This file was deleted.

Empty file added data-local/.gitkeep
Empty file.
34 changes: 0 additions & 34 deletions fly.toml.example

This file was deleted.

Loading

0 comments on commit 26f0ab6

Please sign in to comment.