chore: Update Dockerfile to use correct pnpm install command
All checks were successful
Update Memento Dev on VPS / deploy (push) Successful in 4m15s
All checks were successful
Update Memento Dev on VPS / deploy (push) Successful in 4m15s
This commit is contained in:
parent
f0da2bb2ed
commit
965534659e
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
**/node_modules/
|
||||
**/.pnpm-store/
|
||||
**/dist/
|
||||
.git
|
||||
@ -41,7 +41,7 @@ jobs:
|
||||
VPS_PATH: ${{ secrets.VPS_PATH }}
|
||||
VPS_PORT: ${{ secrets.VPS_PORT }}
|
||||
run: |
|
||||
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose-prod.yml build --no-cache"
|
||||
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose-prod.yml build"
|
||||
echo "📦 The application have been builded on the VPS."
|
||||
|
||||
- name: Start the application
|
||||
|
||||
@ -22,6 +22,8 @@ export default {
|
||||
bodyAttributes: {
|
||||
class: "flex min-h-full bg-white dark:bg-slate-900",
|
||||
},
|
||||
|
||||
// prerender: true,
|
||||
prefetchStaticAssets: "hover",
|
||||
|
||||
extends: vikeReact,
|
||||
|
||||
6
app/pages/certifications/+onBeforePrerenderStart.ts
Normal file
6
app/pages/certifications/+onBeforePrerenderStart.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { docsService } from "@/services/DocsService";
|
||||
|
||||
export async function onBeforePrerenderStart() {
|
||||
const allDocumentations = await docsService.getUrls("certifications");
|
||||
return allDocumentations;
|
||||
}
|
||||
6
app/pages/docs/+onBeforePrerenderStart.ts
Normal file
6
app/pages/docs/+onBeforePrerenderStart.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { docsService } from "@/services/DocsService";
|
||||
|
||||
export async function onBeforePrerenderStart() {
|
||||
const allDocumentations = await docsService.getUrls("docs");
|
||||
return allDocumentations;
|
||||
}
|
||||
@ -6,7 +6,7 @@ RUN npm install -g pnpm
|
||||
|
||||
COPY ./app/package.json ./app/pnpm-lock.yaml ./
|
||||
|
||||
RUN pnpm install --frozen-lockfile --production
|
||||
RUN pnpm install --frozen-lockfile --prod false
|
||||
|
||||
COPY ./app /app
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user