Compare commits
2
Commits
a43f8de3e4
...
45b64991eb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45b64991eb | ||
|
|
af3fada37a |
@@ -58,7 +58,7 @@ jobs:
|
||||
|
||||
scp -i key.pem -o StrictHostKeyChecking=no \
|
||||
docker-compose.yml \
|
||||
bot@${{ secrets.SSH_HOST }}:/home/shared/iceberg/.../docker-compose.yml # [TO CHANGE]
|
||||
bot@${{ secrets.SSH_HOST }}:/home/shared/iceberg/chat/chat-website/docker-compose.yml
|
||||
- name: Execute remote deployment
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
@@ -73,10 +73,10 @@ jobs:
|
||||
docker pull gitea.iceberg.black/$REPO_LOWER:$TAG
|
||||
docker logout gitea.iceberg.black
|
||||
|
||||
docker stop ... || true # [TO CHANGE]
|
||||
docker rm ... || true # [TO CHANGE]
|
||||
docker stop chat-website || true
|
||||
docker rm chat-website || true
|
||||
|
||||
cd /home/shared/iceberg/... # [TO CHANGE]
|
||||
cd /home/shared/iceberg/chat/chat-website
|
||||
REPO_LOWER=$REPO_LOWER TAG=$TAG docker compose up -d
|
||||
|
||||
docker image prune -af
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
services:
|
||||
chat:
|
||||
image: gitea.iceberg.black/${REPO_LOWER}:${TAG}
|
||||
container_name: ... # [TO CHANGE]
|
||||
container_name: chat-website
|
||||
|
||||
env_file:
|
||||
- .env # You SHOULD upload env file on vps before
|
||||
|
||||
ports:
|
||||
- '...:...' # [TO CHANGE]
|
||||
- '6067:3000'
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
"nav": {
|
||||
"label1": "Home",
|
||||
"label2": "Example",
|
||||
"label3": "Home 2"
|
||||
"label3": "Doc"
|
||||
},
|
||||
"home": {
|
||||
"name": "Iceberg Server",
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
"nav": {
|
||||
"label1": "Accueil",
|
||||
"label2": "Exemple",
|
||||
"label3": "Accueil 2"
|
||||
"label3": "Doc"
|
||||
},
|
||||
"home": {
|
||||
"name": "Iceberg Server",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Iceberg Server",
|
||||
"short_name": "Iceberg",
|
||||
"description": "Serveur personnel Iceberg - Petit mais costaud",
|
||||
"name": "Chat Iceberg",
|
||||
"short_name": "Chat Iceberg",
|
||||
"description": "Privacy-aware LLM",
|
||||
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// 'use client'
|
||||
|
||||
// import { useEffect, useState } from 'react'
|
||||
|
||||
// export default function AboutPage() {
|
||||
// const [data, setData] = useState<any>(null)
|
||||
// const [loading, setLoading] = useState(true)
|
||||
|
||||
// useEffect(() => {
|
||||
// fetch((process.env.NEXT_PUBLIC_API_URL as string) + "/docs.json")
|
||||
// .then((res) => res.json())
|
||||
// .then((result) => {
|
||||
// setData(result)
|
||||
// setLoading(false)
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.error(err)
|
||||
// setLoading(false)
|
||||
// })
|
||||
// }, [])
|
||||
|
||||
// return (
|
||||
// <div className="p-6">
|
||||
// <h1>About</h1>
|
||||
|
||||
// {loading && <p>Loading...</p>}
|
||||
|
||||
// {!loading && data && (
|
||||
// <pre>{JSON.stringify(data, null, 2)}</pre>
|
||||
// )}
|
||||
// </div>
|
||||
// )
|
||||
// }
|
||||
@@ -1,8 +0,0 @@
|
||||
export default function AboutPage() {
|
||||
return (
|
||||
<div className="p-6">
|
||||
<h1>About</h1>
|
||||
<p>This is an example</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -31,7 +31,7 @@ export default function Navbar() {
|
||||
const links = [
|
||||
{ to: '/', label: t('label1') },
|
||||
{ to: '/example', label: t('label2') },
|
||||
{ to: '/3', label: t('label3') },
|
||||
{ to: '/doc', label: t('label3') },
|
||||
];
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user