forked from coracle/flotilla
Use env instead of env.local
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Env
|
# Env
|
||||||
.env.local
|
.env
|
||||||
|
|
||||||
# Vite
|
# Vite
|
||||||
vite.config.js.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ To run your own Flotilla, it's as simple as:
|
|||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
|
|
||||||
You can also optionally create an `.env.local` file and populate it with the following environment variables (see `.env` for examples):
|
You can also optionally create an `.env` file and populate it with the following environment variables (see `.env` for examples):
|
||||||
|
|
||||||
- `VITE_DEFAULT_PUBKEYS` - A comma-separated list of hex pubkeys for bootstrapping web of trust.
|
- `VITE_DEFAULT_PUBKEYS` - A comma-separated list of hex pubkeys for bootstrapping web of trust.
|
||||||
- `VITE_PLATFORM_URL` - The url where the app will be hosted. This is only used for build-time population of meta tags.
|
- `VITE_PLATFORM_URL` - The url where the app will be hosted. This is only used for build-time population of meta tags.
|
||||||
@@ -38,7 +38,7 @@ First, create an `A` record with your DNS provider pointing to the IP of your se
|
|||||||
|
|
||||||
Next install `nginx`, `git`, and `certbot`. If you're on a debian- or ubuntu-based distro, run `sudo apt-get update && sudo apt-get install nginx git certbot python3-certbot-nginx`.
|
Next install `nginx`, `git`, and `certbot`. If you're on a debian- or ubuntu-based distro, run `sudo apt-get update && sudo apt-get install nginx git certbot python3-certbot-nginx`.
|
||||||
|
|
||||||
Now, create a new user where your code will be stored, clone the repository, fill in your `.env.local` file, and build the app.
|
Now, create a new user where your code will be stored, clone the repository, fill in your `.env` file, and build the app.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Replace with your password
|
# Replace with your password
|
||||||
@@ -67,7 +67,7 @@ nvm install
|
|||||||
nvm use
|
nvm use
|
||||||
pnpm i
|
pnpm i
|
||||||
|
|
||||||
# Optionally create and populate .env.local to suit your use case
|
# Optionally create and populate .env to suit your use case
|
||||||
|
|
||||||
# Build the app
|
# Build the app
|
||||||
NODE_OPTIONS=--max_old_space_size=16384 pnpm run build
|
NODE_OPTIONS=--max_old_space_size=16384 pnpm run build
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ if [ -f .env.template ]; then
|
|||||||
source .env.template
|
source .env.template
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f .env.local ]; then
|
if [ -f .env ]; then
|
||||||
source .env.local
|
source .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Avoid overwriting env vars provided directly
|
# Avoid overwriting env vars provided directly
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import dotenv from "dotenv"
|
import dotenv from "dotenv"
|
||||||
import {defineConfig, minimalPreset as preset} from "@vite-pwa/assets-generator/config"
|
import {defineConfig, minimalPreset as preset} from "@vite-pwa/assets-generator/config"
|
||||||
|
|
||||||
dotenv.config({path: ".env.local"})
|
dotenv.config({path: ".env"})
|
||||||
dotenv.config({path: ".env.template"})
|
dotenv.config({path: ".env.template"})
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import {config} from "dotenv"
|
|||||||
import daisyui from "daisyui"
|
import daisyui from "daisyui"
|
||||||
import themes from "daisyui/src/theming/themes"
|
import themes from "daisyui/src/theming/themes"
|
||||||
|
|
||||||
config({path: ".env.local"})
|
config({path: ".env"})
|
||||||
config({path: ".env.template"})
|
config({path: ".env.template"})
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import {SvelteKitPWA} from "@vite-pwa/sveltekit"
|
|||||||
import {sveltekit} from "@sveltejs/kit/vite"
|
import {sveltekit} from "@sveltejs/kit/vite"
|
||||||
import svg from "@poppanator/sveltekit-svg"
|
import svg from "@poppanator/sveltekit-svg"
|
||||||
|
|
||||||
config({path: ".env.local"})
|
config({path: ".env"})
|
||||||
config({path: ".env.template"})
|
config({path: ".env.template"})
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
Reference in New Issue
Block a user