mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 01:15:26 +10:00
initial gitpod configuration
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
|||||||
|
# Server + Client
|
||||||
|
TZ=UTC
|
||||||
|
PUBLIC_URL=http://3000-$GITPOD_WORKSPACE_URL
|
||||||
|
PUBLIC_SERVER_URL=http://3100-$GITPOD_WORKSPACE_URL
|
||||||
|
PUBLIC_GOOGLE_CLIENT_ID=
|
||||||
|
|
||||||
|
# Server + Database
|
||||||
|
POSTGRES_DB=postgres
|
||||||
|
POSTGRES_USER=postgres
|
||||||
|
POSTGRES_PASSWORD=postgres
|
||||||
|
|
||||||
|
# Server
|
||||||
|
SECRET_KEY=
|
||||||
|
POSTGRES_HOST=postgres
|
||||||
|
POSTGRES_PORT=5432
|
||||||
|
POSTGRES_SSL_CERT=
|
||||||
|
JWT_SECRET=
|
||||||
|
JWT_EXPIRY_TIME=604800
|
||||||
|
GOOGLE_CLIENT_SECRET=
|
||||||
|
GOOGLE_API_KEY=
|
||||||
|
MAIL_FROM_NAME=
|
||||||
|
MAIL_FROM_EMAIL=
|
||||||
|
MAIL_HOST=
|
||||||
|
MAIL_PORT=
|
||||||
|
MAIL_USERNAME=
|
||||||
|
MAIL_PASSWORD=
|
||||||
|
STORAGE_BUCKET=
|
||||||
|
STORAGE_REGION=
|
||||||
|
STORAGE_ENDPOINT=
|
||||||
|
STORAGE_URL_PREFIX=
|
||||||
|
STORAGE_ACCESS_KEY=
|
||||||
|
STORAGE_SECRET_KEY=
|
||||||
|
PDF_DELETION_TIME=345600000
|
||||||
|
|
||||||
|
# Client
|
||||||
|
PUBLIC_FLAG_DISABLE_SIGNUPS=false
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
# Environment Variables
|
# Environment Variables
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
|
!.env.gitpod
|
||||||
!.env.example
|
!.env.example
|
||||||
|
|
||||||
# Project Dependencies
|
# Project Dependencies
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
FROM gitpod/workspace-postgresql
|
||||||
+27
@@ -0,0 +1,27 @@
|
|||||||
|
tasks:
|
||||||
|
- name: Restore .env file
|
||||||
|
command: |
|
||||||
|
if [ -f .env ]; then
|
||||||
|
# If this workspace already has a .env, don't override it
|
||||||
|
# Local changes survive a workspace being opened and closed
|
||||||
|
# but they will not persist between separate workspaces for the same repo
|
||||||
|
echo "Found .env in workspace"
|
||||||
|
else
|
||||||
|
if [ -z "${DOTENV}" ]; then
|
||||||
|
# There is no $DOTENV from a previous workspace
|
||||||
|
# Default to the example .env
|
||||||
|
echo "Setting example .env"
|
||||||
|
cp .env.example .env
|
||||||
|
else
|
||||||
|
# After making changes to .env, run this line to persist it to $DOTENV
|
||||||
|
# gp env DOTENV="$(base64 .env | tr -d '\n')"
|
||||||
|
#
|
||||||
|
# Environment variables set this way are shared between all your workspaces for this repo
|
||||||
|
# The lines below will read $DOTENV and print a .env file
|
||||||
|
echo "Restoring .env from Gitpod"
|
||||||
|
echo "${DOTENV}" | base64 -d > .env
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
- init: pnpm install
|
||||||
|
command: pnpm dev
|
||||||
Reference in New Issue
Block a user