Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Production fixes
  • Loading branch information
chrischivlog committed May 22, 2024
1 parent 0ce97f8 commit 53e36b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COPY --from=clone_stage /bot ./
COPY config.json /bot/src/data

# Copy the index.php for the API to the webserver directory
COPY index.php /var/www/html/
RUN mv /bot/index.php /var/www/html/

# Remove the default index.html file if it exists
RUN rm -f /var/www/html/index.html
Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
$data = [];
$counter = 0;

#request for each json file
foreach ($jsonFiles as $file) {
$counter++;
$data[] = [
Expand All @@ -28,5 +29,6 @@
];
}

#print response to browser
echo json_encode($data);
?>

0 comments on commit 53e36b7

Please sign in to comment.