-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
491 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.env | ||
fitcrack-data/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
CONTAINER=fc-fitcrack_server-1 | ||
ROOT_INSIDE=/var/www/html | ||
PATH_TO_API=$1 | ||
|
||
# check if cwd is the root of the project | ||
if [ ! -f "Dockerfile" ]; then | ||
echo "You must run this script from the root of the project" | ||
exit 1 | ||
fi | ||
|
||
# Set default value for PATH_TO_API if not provided | ||
if [ -z "$PATH_TO_API" ]; then | ||
PATH_TO_API="fitcrackAPI/src/src" | ||
echo "No path provided, using default path: $PATH_TO_API" | ||
fi | ||
|
||
# remove the old directory inside the container | ||
docker exec -t $CONTAINER rm -rf $ROOT_INSIDE/$PATH_TO_API | ||
# copy the new directory inside the container | ||
docker cp webadmin/$PATH_TO_API $CONTAINER:$ROOT_INSIDE/$PATH_TO_API | ||
# restart the server inside the container | ||
docker exec -t $CONTAINER service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ Matus Mucka | |
Adam Horak | ||
David Bolvansky | ||
Radek Hranicky | ||
Viktor Rucky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.