Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 13ad4e08d2 | |||
| 7e35cf0c31 |
@@ -118,7 +118,7 @@ steps:
|
|||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- echo "🛑 Stopping old container..."
|
- echo "🛑 Stopping old container..."
|
||||||
- docker rm -f blog || true
|
- docker rm -f tic-tac-toe-ui || true
|
||||||
|
|
||||||
- name: run-container
|
- name: run-container
|
||||||
image: docker:24
|
image: docker:24
|
||||||
@@ -131,8 +131,8 @@ steps:
|
|||||||
- echo "🚀 Starting container lila-games/tic-tac-toe-ui:$IMAGE_TAG ..."
|
- echo "🚀 Starting container lila-games/tic-tac-toe-ui:$IMAGE_TAG ..."
|
||||||
- |
|
- |
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name blog \
|
--name tic-tac-toe-ui \
|
||||||
-p 3002:3000 \
|
-p 3003:3000 \
|
||||||
-e NODE_ENV=production \
|
-e NODE_ENV=production \
|
||||||
--restart always \
|
--restart always \
|
||||||
lila-games/tic-tac-toe-ui:$IMAGE_TAG
|
lila-games/tic-tac-toe-ui:$IMAGE_TAG
|
||||||
|
|||||||
@@ -48,9 +48,10 @@ export const NakamaContext = createContext<NakamaContextType>(null!);
|
|||||||
export function NakamaProvider({ children }: { children: React.ReactNode }) {
|
export function NakamaProvider({ children }: { children: React.ReactNode }) {
|
||||||
const [client] = useState(
|
const [client] = useState(
|
||||||
() => new Client(
|
() => new Client(
|
||||||
import.meta.env.VITE_WS_SKEY,
|
import.meta.env.VITE_SERVER_KEY,
|
||||||
import.meta.env.VITE_WS_HOST,
|
import.meta.env.VITE_WS_HOST,
|
||||||
import.meta.env.VITE_WS_PORT
|
import.meta.env.VITE_WS_PORT,
|
||||||
|
import.meta.env.VITE_WS_SSL === "true"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user