Update some things. Default URL changed for VPS.
This commit is contained in:
@@ -13,8 +13,8 @@ RUN pnpm install
|
||||
COPY . .
|
||||
|
||||
# Build the project
|
||||
RUN pnpm run prebuild
|
||||
RUN pnpm run build
|
||||
#RUN pnpm run prebuild
|
||||
RUN pnpm build
|
||||
|
||||
# Stage 2: Serve the app using the same version of Node
|
||||
FROM node:18-alpine
|
||||
|
||||
@@ -5,7 +5,7 @@ networks:
|
||||
services:
|
||||
bang:
|
||||
build:
|
||||
context: ../
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
image: gib/bang:latest
|
||||
container_name: bang
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Function to check if we're in the correct directory
|
||||
check_directory() {
|
||||
|
||||
15
docker/podman-bang.service
Normal file
15
docker/podman-bang.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Podman Compose: Bang
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/home/gib/Server/Search/Bang/docker
|
||||
ExecStart=/usr/bin/podman compose up -d
|
||||
ExecStop=/usr/bin/podman compose down
|
||||
RemainAfterExit=yes
|
||||
TimeoutStopSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Function to check if we're in the correct directory
|
||||
check_directory() {
|
||||
@@ -45,7 +45,6 @@ if ! check_directory; then
|
||||
fi
|
||||
|
||||
git pull
|
||||
pnpm build
|
||||
cd docker || exit 1
|
||||
sudo podman compose down
|
||||
sudo podman compose up -d
|
||||
|
||||
Reference in New Issue
Block a user