diff --git a/.github/workflows/Docker Image CI.yaml b/.github/workflows/Docker Image CI.yaml index fee7b6ad6..4cc41e1f6 100644 --- a/.github/workflows/Docker Image CI.yaml +++ b/.github/workflows/Docker Image CI.yaml @@ -1,5 +1,5 @@ name: Docker Image CI -run-name: Building & Pushing ${{ github.event.inputs.image_ci }} Image +run-name: Building & Pushing ${{ github.event.inputs.image_ci }} Image on: workflow_dispatch: inputs: @@ -61,6 +61,7 @@ jobs: git config user.email github-actions@github.com git tag "${{ env.latest_tag }}" git push --tag + echo "arielrahamim/chess-app:${{ github.event.inputs.image_ci }}:${{ env.latest_tag }}" diff --git a/backend/server.js b/backend/server.js index dd22f3c9e..e14511d55 100644 --- a/backend/server.js +++ b/backend/server.js @@ -34,7 +34,6 @@ app.use(cors()); const gameRouter = require('./routes/gameRouter'); const userRouter = require('./routes/userRouter'); const testRouter = require('./routes/testRouter'); -// app.use('/g', gameRouter); app.use('/api/g', gameRouter); app.use('/api/u', userRouter); app.use('/api/test', testRouter); diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a08940f98..6d827219a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -14,7 +14,7 @@ RUN npm run build # Set an environment variable ### old env variable, probably not needed? -ENV REACT_APP_HOST localhost:3000/api +ENV REACT_APP_HOST 172.18.163.205:5000 ENV SKIP_PREFLIGHT_CHECK true # Set a label used to be able to add meta data to a iamge diff --git a/frontend/src/App.js b/frontend/src/App.js index eb725e95e..ab406910d 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -21,7 +21,7 @@ import 'bootstrap/dist/css/bootstrap.min.css'; import './style.css'; const { SERVER_URL } = require('./components/Utils/Config'); - +console.log(SERVER_URL) function App() { const [user, setUser] = useState({ isValid: false, diff --git a/frontend/src/components/Utils/Config.js b/frontend/src/components/Utils/Config.js index 3e0bf1223..81d2edf66 100644 --- a/frontend/src/components/Utils/Config.js +++ b/frontend/src/components/Utils/Config.js @@ -1,4 +1,4 @@ const SERVER_HOST = process.env.REACT_APP_HOST; const SERVER_URL = `http://${SERVER_HOST}`; -const POD= process.env.REACT_APP_POD; +const POD = process.env.REACT_APP_POD; module.exports = { SERVER_URL ,POD};