Skip to content

Commit 848127f

Browse files
authored
Merge pull request #776 from OpenKnowledgeMaps/deployment-bugfixes
Deployment bugfixes
2 parents fb42896 + a79f3be commit 848127f

4 files changed

Lines changed: 28 additions & 1 deletion

File tree

checks/config-js.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# Checks that config.js file exists in the root of the project
4+
CONFIG_FILE="$(dirname "$0")/config.js"
5+
if [ ! -f "$CONFIG_FILE" ]; then
6+
echo "\033[1;33m Warning: config.js not found in the project root! See the config.example.js file.\033[0m"
7+
fi

checks/ht-access.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# !/bin/bash
2+
# Checks that .htaccess file exists in the project-website folder and creates one if if it is not
3+
4+
cd .. || exit
5+
cd project-website || exit
6+
7+
if [ ! -f .htaccess ]; then
8+
echo "\033[1;33m Warning: .htaccess not found in the project-website folder. It will be created automatically."
9+
cp settings.htaccess .htaccess
10+
echo ".htaccess file created."
11+
fi
12+
13+
cd .. || exit
14+
cd Headstart || exit

local-hotreload.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3+
chmod a+x checks/config-js.sh
4+
source ./checks/config-js.sh
5+
6+
chmod a+x checks/ht-access.sh
7+
source ./checks/ht-access.sh
8+
39
npm run prod -- --mode=development
410
docker compose --env-file ./local_dev/dev.env stop
511
docker compose --env-file ./local_dev/dev.env up -d --build

server/workers/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ RUN apt update && apt full-upgrade -y && \
134134
ln -s /usr/share/zoneinfo/Europe/Vienna /etc/localtime && \
135135
dpkg --configure -a
136136

137-
RUN apt-get -y install python3.8 python3-pip
137+
RUN apt-get -y install python3.8 python3.8-dev python3-pip
138138

139139
RUN R -e 'options(repos="https://cran.wu.ac.at")' && \
140140
R -e 'install.packages("remotes")' && \

0 commit comments

Comments
 (0)