This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from doras-to/staging
Updated Fonts & Caprover deploy
- Loading branch information
Showing
9 changed files
with
571 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Push to CapRover | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
my-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: My Step | ||
uses: jasongitmail/[email protected] | ||
with: | ||
url: ${{ secrets.CAPROVER_WEBHOOK_URL_DORAS_HOMESITE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Use Node.js version 20.9.0 as the base image | ||
FROM node:20.9.0 | ||
|
||
# Set the working directory within the container | ||
# WORKDIR /app | ||
WORKDIR /usr/src/app | ||
|
||
# Install pnpm globally (uncomment if needed) | ||
RUN npm install -g pnpm | ||
|
||
# Copy only package.json and pnpm-lock.yaml (or pnpm-lock.json) files | ||
COPY package*.json pnpm-lock.* ./ | ||
|
||
|
||
# Run pnpm install to install dependencies | ||
RUN npx pnpm install | ||
|
||
# COPY stack.env .env | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Run pnpm build to build the application | ||
# RUN pnpm build | ||
|
||
# Expose port 4321 (optional, depending on your use case) | ||
# EXPOSE 80 | ||
|
||
# Set the default command to run the application | ||
# CMD ["node", "server.js"] | ||
# CMD ["node", "run-server.mjs"] | ||
CMD ["pnpm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.