Update some things. Default URL changed for VPS.
This commit is contained in:
9
.dockerignore
Normal file
9
.dockerignore
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
LICENSE
|
||||||
|
README.md
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.env.example
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
docker/**
|
||||||
|
scripts/**
|
||||||
@@ -13,8 +13,8 @@ RUN pnpm install
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
RUN pnpm run prebuild
|
#RUN pnpm run prebuild
|
||||||
RUN pnpm run build
|
RUN pnpm build
|
||||||
|
|
||||||
# Stage 2: Serve the app using the same version of Node
|
# Stage 2: Serve the app using the same version of Node
|
||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ networks:
|
|||||||
services:
|
services:
|
||||||
bang:
|
bang:
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ..
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
image: gib/bang:latest
|
image: gib/bang:latest
|
||||||
container_name: bang
|
container_name: bang
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Function to check if we're in the correct directory
|
# Function to check if we're in the correct directory
|
||||||
check_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
|
# Function to check if we're in the correct directory
|
||||||
check_directory() {
|
check_directory() {
|
||||||
@@ -45,7 +45,6 @@ if ! check_directory; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
git pull
|
git pull
|
||||||
pnpm build
|
|
||||||
cd docker || exit 1
|
cd docker || exit 1
|
||||||
sudo podman compose down
|
sudo podman compose down
|
||||||
sudo podman compose up -d
|
sudo podman compose up -d
|
||||||
|
|||||||
@@ -6,15 +6,14 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"generate-opensearch": "ts-node scripts/generateOpenSearch.ts",
|
"generate-opensearch": "ts-node scripts/generateOpenSearch.ts",
|
||||||
"prebuild": "pnpm generate-opensearch",
|
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.15.17",
|
"@types/node": "^22.19.3",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "~5.7.3",
|
"typescript": "~5.7.3",
|
||||||
"vite": "^6.3.5"
|
"vite": "^6.4.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vite-plugin-pwa": "^0.21.2"
|
"vite-plugin-pwa": "^0.21.2"
|
||||||
|
|||||||
1196
pnpm-lock.yaml
generated
1196
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -3,8 +3,8 @@
|
|||||||
<ShortName>Bang!</ShortName>
|
<ShortName>Bang!</ShortName>
|
||||||
<Description>A better default search engine with bangs</Description>
|
<Description>A better default search engine with bangs</Description>
|
||||||
<InputEncoding>UTF-8</InputEncoding>
|
<InputEncoding>UTF-8</InputEncoding>
|
||||||
<Image width="16" height="16" type="image/svg+xml">https://bang.gbrown.org/bang.svg</Image>
|
<Image width="16" height="16" type="image/svg+xml">https://bang.gibbyb.com/bang.svg</Image>
|
||||||
<Url type="text/html" method="get" template="https://bang.gbrown.org?q={searchTerms}"/>
|
<Url type="text/html" method="get" template="https://bang.gibbyb.com?q={searchTerms}"/>
|
||||||
<Url type="application/opensearchdescription+xml" rel="self" template="https://bang.gbrown.org/opensearch.xml"/>
|
<Url type="application/opensearchdescription+xml" rel="self" template="https://bang.gibbyb.com/opensearch.xml"/>
|
||||||
<moz:SearchForm xmlns:moz="http://www.mozilla.org/2006/browser/search/">https://bang.gbrown.org</moz:SearchForm>
|
<moz:SearchForm xmlns:moz="http://www.mozilla.org/2006/browser/search/">https://bang.gibbyb.com</moz:SearchForm>
|
||||||
</OpenSearchDescription>
|
</OpenSearchDescription>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const __filename = fileURLToPath(import.meta.url);
|
|||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
// Get the Bang URL from environment or use a default for local development
|
// Get the Bang URL from environment or use a default for local development
|
||||||
const bangUrl = process.env.VITE_BANG_URL || 'https://bang.gbrown.org';
|
const bangUrl = process.env.VITE_BANG_URL || 'https://bang.gibbyb.com';
|
||||||
|
|
||||||
// Create the OpenSearch XML content
|
// Create the OpenSearch XML content
|
||||||
const openSearchXml = `<?xml version="1.0" encoding="UTF-8"?>
|
const openSearchXml = `<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|||||||
Reference in New Issue
Block a user