Skip to content

Commit

Permalink
github actions proggress
Browse files Browse the repository at this point in the history
  • Loading branch information
arielrahamim committed Nov 18, 2023
1 parent 355ce3c commit b83524e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/Docker Image CI.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -61,6 +61,7 @@ jobs:
git config user.email [email protected]
git tag "${{ env.latest_tag }}"
git push --tag
echo "arielrahamim/chess-app:${{ github.event.inputs.image_ci }}:${{ env.latest_tag }}"
Expand Down
1 change: 0 additions & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Utils/Config.js
Original file line number Diff line number Diff line change
@@ -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};

0 comments on commit b83524e

Please sign in to comment.