Compare commits
97 Commits
feature/do
...
example/lo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0910dd0349 | ||
|
|
c173699cab | ||
|
|
ec9868db91 | ||
|
|
125afe46ba | ||
|
|
ccc90a33b0 | ||
|
|
e29dbf8a42 | ||
|
|
72ac9fcd19 | ||
|
|
35f97547ec | ||
|
|
11bbbafd40 | ||
|
|
b52019ea2a | ||
|
|
bfa16e213c | ||
|
|
3d85942161 | ||
|
|
ad752157f4 | ||
|
|
509bfe363d | ||
|
|
5e45e4ee83 | ||
|
|
de336cd463 | ||
|
|
cbad3d582c | ||
|
|
35bc947bf1 | ||
|
|
b29028ada4 | ||
|
|
aec76dd7aa | ||
|
|
08fa56dd62 | ||
|
|
5c28cd960c | ||
|
|
03a6d0af3a | ||
|
|
d99a625c6a | ||
|
|
b571d097b6 | ||
|
|
bc9ef1619e | ||
|
|
329d7deb4c | ||
|
|
b7116f9e08 | ||
|
|
d94029e970 | ||
|
|
a3dabf3748 | ||
|
|
303d8cdd45 | ||
|
|
f9ac27ae30 | ||
|
|
17ff19109d | ||
|
|
e94b7ff350 | ||
|
|
6c7ebb345a | ||
|
|
50f472c7e5 | ||
|
|
d139eeaf1e | ||
|
|
0513d78987 | ||
|
|
d6b7d7eced | ||
|
|
199ab6ab81 | ||
|
|
0f0ff3772a | ||
|
|
19188a4534 | ||
|
|
c323e84fa3 | ||
|
|
43ab0be3ed | ||
|
|
3d89147323 | ||
|
|
baac183b8c | ||
|
|
fdda698a93 | ||
|
|
21534b2087 | ||
|
|
859324820e | ||
|
|
e058f5f136 | ||
|
|
08c6b6ac9b | ||
|
|
2204d4ec00 | ||
|
|
36a0dcad9e | ||
|
|
67663d0c5e | ||
|
|
3367b01764 | ||
|
|
793eba4a5f | ||
|
|
39acc564b3 | ||
|
|
930f0cf56a | ||
|
|
09e601e74c | ||
|
|
3118d8fccb | ||
|
|
985f5a8b43 | ||
|
|
8194e32181 | ||
|
|
097f9177b3 | ||
|
|
6c6da94fa6 | ||
|
|
970f7bed08 | ||
|
|
7230c1eff0 | ||
|
|
3381e079c5 | ||
|
|
42bc241ab5 | ||
|
|
8f2603bbf3 | ||
|
|
da9e73ee30 | ||
|
|
0b7a81073d | ||
|
|
d394e927a6 | ||
|
|
8836a98fa7 | ||
|
|
9ce0146a66 | ||
|
|
d601dcfa96 | ||
|
|
9de36f0f2b | ||
|
|
77ffd4d785 | ||
|
|
40a59e538e | ||
|
|
c1d2245b31 | ||
|
|
1ebe570ac3 | ||
|
|
9641ce9db7 | ||
|
|
fe72d295d1 | ||
|
|
8ed3910295 | ||
|
|
f594f9a93a | ||
|
|
0341ca249d | ||
|
|
20d9315f05 | ||
|
|
38061bef6e | ||
|
|
8536af61bd | ||
|
|
73839613aa | ||
|
|
d27d84a543 | ||
|
|
295093101a | ||
|
|
e3050102bd | ||
|
|
3726b561ea | ||
|
|
36982d1eaa | ||
|
|
6bf770a9c5 | ||
|
|
774491b753 | ||
|
|
e126026db9 |
32
.env
32
.env
@@ -1,32 +0,0 @@
|
|||||||
POSTGRES_USER=unicorn_user
|
|
||||||
POSTGRES_PASSWORD=magical_password
|
|
||||||
POSTGRES_DB=calendso
|
|
||||||
DATABASE_HOST=db:5432
|
|
||||||
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}"
|
|
||||||
GOOGLE_API_CREDENTIALS='secret'
|
|
||||||
BASE_URL='http://localhost:3000'
|
|
||||||
NEXTAUTH_URL='http://localhost:3000'
|
|
||||||
|
|
||||||
# Remove this var if you don't want Calendso to collect anonymous usage
|
|
||||||
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
|
|
||||||
|
|
||||||
# Used for the Office 365 / Outlook.com Calendar integration
|
|
||||||
MS_GRAPH_CLIENT_ID=
|
|
||||||
MS_GRAPH_CLIENT_SECRET=
|
|
||||||
|
|
||||||
# Used for the Zoom integration
|
|
||||||
ZOOM_CLIENT_ID=
|
|
||||||
ZOOM_CLIENT_SECRET=
|
|
||||||
|
|
||||||
# E-mail settings
|
|
||||||
# Configures the global From: header whilst sending emails.
|
|
||||||
EMAIL_FROM='notifications@example.com'
|
|
||||||
|
|
||||||
# Configure SMTP settings (@see https://nodemailer.com/smtp/).
|
|
||||||
EMAIL_SERVER_HOST='smtp.example.com'
|
|
||||||
EMAIL_SERVER_PORT=587
|
|
||||||
EMAIL_SERVER_USER='email_user'
|
|
||||||
EMAIL_SERVER_PASSWORD='email_password'
|
|
||||||
|
|
||||||
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
|
|
||||||
CALENDSO_ENCRYPTION_KEY=''
|
|
||||||
48
.env.example
Normal file
48
.env.example
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# Set this value to 'agree' to accept our license:
|
||||||
|
# LICENSE: https://github.com/calendso/calendso/blob/main/LICENSE
|
||||||
|
#
|
||||||
|
# Summary of terms:
|
||||||
|
# - The codebase has to stay open source, whether it was modified or not
|
||||||
|
# - You can not repackage or sell the codebase
|
||||||
|
# - Acquire a commercial license to remove these terms by emailing: license@cal.com
|
||||||
|
NEXT_PUBLIC_LICENSE_CONSENT=
|
||||||
|
LICENSE=
|
||||||
|
|
||||||
|
BASE_URL=http://localhost:3000
|
||||||
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||||
|
|
||||||
|
POSTGRES_USER=unicorn_user
|
||||||
|
POSTGRES_PASSWORD=magical_password
|
||||||
|
POSTGRES_DB=calendso
|
||||||
|
DATABASE_HOST=database:5432
|
||||||
|
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
||||||
|
GOOGLE_API_CREDENTIALS={}
|
||||||
|
|
||||||
|
# Remove this var if you don't want Calendso to collect anonymous usage
|
||||||
|
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
|
||||||
|
|
||||||
|
# Used for the Office 365 / Outlook.com Calendar integration
|
||||||
|
MS_GRAPH_CLIENT_ID=
|
||||||
|
MS_GRAPH_CLIENT_SECRET=
|
||||||
|
|
||||||
|
# Used for the Zoom integration
|
||||||
|
ZOOM_CLIENT_ID=
|
||||||
|
ZOOM_CLIENT_SECRET=
|
||||||
|
|
||||||
|
# E-mail settings
|
||||||
|
# Configures the global From: header whilst sending emails.
|
||||||
|
EMAIL_FROM=notifications@example.com
|
||||||
|
|
||||||
|
# Configure SMTP settings (@see https://nodemailer.com/smtp/).
|
||||||
|
EMAIL_SERVER_HOST=smtp.example.com
|
||||||
|
EMAIL_SERVER_PORT=587
|
||||||
|
EMAIL_SERVER_USER=email_user
|
||||||
|
EMAIL_SERVER_PASSWORD=email_password
|
||||||
|
|
||||||
|
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
|
||||||
|
CALENDSO_ENCRYPTION_KEY=
|
||||||
|
|
||||||
|
# It is highly recommended that the JWT secret must be overridden and very unique
|
||||||
|
JWT_SECRET=secret
|
||||||
|
|
||||||
|
NODE_ENV=production
|
||||||
70
.github/workflows/docker-build-push-dockerhub.yml
vendored
Normal file
70
.github/workflows/docker-build-push-dockerhub.yml
vendored
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: Build and push image to DockerHub
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
# update on run of Update Calendso nightly submodule update
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Update Calendso"]
|
||||||
|
branches: [main]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
# Allow running workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Leaving in example for releases. Initially we simply push to 'latest'
|
||||||
|
# on:
|
||||||
|
# release:
|
||||||
|
# types: [ created ]
|
||||||
|
|
||||||
|
# # Allows you to run this workflow manually from the Actions tab
|
||||||
|
# workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Docker Login
|
||||||
|
# You may pin to the exact commit or the version.
|
||||||
|
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
||||||
|
uses: docker/login-action@v1.10.0
|
||||||
|
with:
|
||||||
|
# Username used to log against the Docker registry
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
# Password or personal access token used to log against the Docker registry
|
||||||
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
|
# Log out from the Docker registry at the end of a job
|
||||||
|
logout: true # optional, default is true
|
||||||
|
|
||||||
|
- name: Set up Docker builder
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: ./
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
# The test image is /docker and is private. final image will be /calendso and public
|
||||||
|
tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:latest
|
||||||
|
build-args: |
|
||||||
|
BASE_URL=http://localhost:3000
|
||||||
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||||
|
|
||||||
|
- name: Image digest
|
||||||
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# .env file
|
||||||
|
.env
|
||||||
24
Dockerfile
24
Dockerfile
@@ -1,28 +1,40 @@
|
|||||||
FROM node:14-alpine as deps
|
FROM node:14 as deps
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY calendso/package.json calendso/yarn.lock ./
|
COPY calendso/package.json calendso/yarn.lock ./
|
||||||
COPY calendso/prisma prisma
|
COPY calendso/prisma prisma
|
||||||
RUN yarn install --frozen-lockfile
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
FROM node:14-alpine as builder
|
FROM node:14 as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
ARG BASE_URL
|
||||||
|
ARG NEXT_PUBLIC_APP_URL
|
||||||
|
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
||||||
|
ARG NEXT_PUBLIC_TELEMETRY_KEY
|
||||||
|
ENV BASE_URL=$BASE_URL \
|
||||||
|
NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL \
|
||||||
|
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
|
||||||
|
NEXT_PUBLIC_TELEMETRY_KEY=$NEXT_PUBLIC_TELEMETRY_KEY
|
||||||
|
|
||||||
COPY calendso .
|
COPY calendso .
|
||||||
|
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
|
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
|
||||||
|
|
||||||
FROM node:14-alpine as runner
|
FROM node:14 as runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
COPY --from=builder /app/prisma ./prisma
|
||||||
|
COPY --from=builder /app/scripts ./scripts
|
||||||
COPY --from=builder /app/next.config.js ./
|
COPY --from=builder /app/next.config.js ./
|
||||||
COPY --from=builder /app/next-i18next.config.js ./
|
COPY --from=builder /app/next-i18next.config.js ./
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
COPY --from=builder /app/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
|
||||||
COPY --from=builder /app/package.json ./package.json
|
COPY --from=builder /app/package.json ./package.json
|
||||||
COPY --from=builder /app/prisma ./prisma
|
|
||||||
COPY scripts scripts
|
COPY scripts scripts
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["/app/scripts/start.sh"]
|
CMD ["/app/scripts/start.sh"]
|
||||||
|
|||||||
52
README.md
52
README.md
@@ -8,10 +8,22 @@
|
|||||||
<a href="https://github.com/calendso/calendso-docker/issues">Community Support</a>
|
<a href="https://github.com/calendso/calendso-docker/issues">Community Support</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
# calendso-docker
|
# Docker
|
||||||
|
|
||||||
|
This image can be found on DockerHub at [https://hub.docker.com/repository/docker/calendso/calendso](https://hub.docker.com/repository/docker/calendso/calendso)
|
||||||
|
|
||||||
The Docker configuration for Calendso is an effort powered by people within the community. Calendso does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
|
The Docker configuration for Calendso is an effort powered by people within the community. Calendso does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
|
||||||
|
|
||||||
|
## Important Notes
|
||||||
|
|
||||||
|
This Docker Image is managed by the Calendso Community. Support for this image can be found via the repository, located at [https://github.com/calendso/docker](https://github.com/calendso/docker)
|
||||||
|
|
||||||
|
Currently, this image is intended for local development/evaluation use only, as there are specific requirements for providing environmental variables at build-time in order to specify a non-localhost BASE_URL. (this is due to the nature of the static site compilation, which embeds the variable values). The ability to update these variables at runtime is in-progress and will be available in the future.
|
||||||
|
|
||||||
|
For Production, for the time being, please checkout the repository and build/push your own image privately.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Make sure you have `docker` & `docker-compose` installed on the server / system.
|
Make sure you have `docker` & `docker-compose` installed on the server / system.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
@@ -21,25 +33,55 @@ Make sure you have `docker` & `docker-compose` installed on the server / system.
|
|||||||
```bash
|
```bash
|
||||||
git clone --recursive https://github.com/calendso/docker.git calendso-docker
|
git clone --recursive https://github.com/calendso/docker.git calendso-docker
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Change into the directory
|
2. Change into the directory
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd calendso-docker
|
cd calendso-docker
|
||||||
```
|
```
|
||||||
3. Update `.env` if needed
|
|
||||||
|
3. Rename `.env.example` to `.env` and update `.env` if needed.
|
||||||
|
|
||||||
4. Build and start calendso
|
4. Build and start calendso
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker-compose up --build
|
docker-compose up --build
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Start prisma studio
|
5. Start prisma studio
|
||||||
```
|
|
||||||
|
```bash
|
||||||
docker-compose exec calendso npx prisma studio
|
docker-compose exec calendso npx prisma studio
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
|
6. Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
|
||||||
|
|
||||||
7. Click on the `User` model to add a new user record.
|
7. Click on the `User` model to add a new user record.
|
||||||
8. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
|
|
||||||
|
8. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
|
||||||
|
|
||||||
9. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
|
9. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
|
||||||
|
|
||||||
|
## Git Submodules
|
||||||
|
|
||||||
|
This repository uses a git submodule.
|
||||||
|
|
||||||
|
If you cloned the repository without using `--recursive`, then you can initialize and clone the submodule with the following steps.
|
||||||
|
|
||||||
|
1. Init the submodule
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git submodule init
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Update the submodule
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git submodule update --remote
|
||||||
|
```
|
||||||
|
|
||||||
|
For more advanced usage, please refer to the git documentation: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
* SSL edge termination: If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.
|
||||||
|
|||||||
2
calendso
2
calendso
Submodule calendso updated: 69a54d10df...09c4040ce5
@@ -1,22 +1,63 @@
|
|||||||
# Use postgres/example user/password credentials
|
# Use postgres/example user/password credentials
|
||||||
version: '3.1'
|
version: '3.1'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
database-data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
stack:
|
||||||
|
external: false
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
database:
|
||||||
image: postgres
|
image: postgres
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- database-data:/var/lib/postgresql/data/
|
- database-data:/var/lib/postgresql/data/
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
networks:
|
||||||
- 5432:5432
|
- stack
|
||||||
|
|
||||||
calendso:
|
calendso:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- BASE_URL=${BASE_URL}
|
||||||
|
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
|
||||||
|
- NEXT_PUBLIC_LICENSE_CONSENT=${NEXT_PUBLIC_LICENSE_CONSENT}
|
||||||
|
- NEXT_PUBLIC_TELEMETRY_KEY=${NEXT_PUBLIC_TELEMETRY_KEY}
|
||||||
|
image: calendso/calendso:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- stack
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
||||||
|
- NODE_ENV=development
|
||||||
|
depends_on:
|
||||||
|
- database
|
||||||
|
volumes:
|
||||||
|
- "./calendso:/app/"
|
||||||
|
- "./scripts:/app/scripts"
|
||||||
|
|
||||||
|
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
|
||||||
|
studio:
|
||||||
|
image: calendso/calendso:latest
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- stack
|
||||||
|
ports:
|
||||||
- 5555:5555
|
- 5555:5555
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- database
|
||||||
volumes:
|
command:
|
||||||
database-data:
|
- npx
|
||||||
|
- prisma
|
||||||
|
- studio
|
||||||
|
# END SECTION: Optional use of Prisma Studio.
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "db is up"
|
# # Set environment variables
|
||||||
|
# echo NEXT_PUBLIC_APP_URL $NEXT_PUBLIC_APP_URL
|
||||||
|
# find \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#$NEXT_PUBLIC_APP_URL#$NEXT_PUBLIC_APP_URL_SUBSTITUTE#g"
|
||||||
|
|
||||||
|
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
||||||
npx prisma migrate deploy
|
npx prisma migrate deploy
|
||||||
yarn start
|
if [[ $NODE_ENV == "development" ]]; then
|
||||||
|
yarn dev
|
||||||
|
else
|
||||||
|
yarn start
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user