Skip to content

Commit

Permalink
Merge pull request #35 from startersclan/refactor/move-source-directo…
Browse files Browse the repository at this point in the history
…ries-to-.-src

Refactor: Move source directories to ./src
  • Loading branch information
leojonathanoh committed Nov 16, 2023
2 parents a65dcbd + 14edcd9 commit 06595ec
Show file tree
Hide file tree
Showing 6,296 changed files with 13 additions and 13 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.idea
/web/.idea
/src/web/.idea
/.vscode/*
!/.vscode/launch.json
/.vagrant
/web/hlstatsimg/progress
/web/hlstatsimg/graph
/src/web/hlstatsimg/progress
/src/web/hlstatsimg/graph
2 changes: 1 addition & 1 deletion Dockerfile.daemon
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN set -eux; \
gzip -d /GeoLite2-City.mmdb.gz;

# Copy scripts and set permissions
COPY scripts /scripts
COPY ./src/scripts /scripts
RUN set -eux; \
mv -v /GeoLiteCity.dat /scripts/GeoLiteCity/GeoLiteCity.dat; \
mv -v /GeoLite2-City.mmdb /scripts/GeoLiteCity/GeoLite2-City.mmdb; \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ FROM $IMAGE AS build

# Set permissions for 'www-data' user
# COPY --chown=www-data:www-data --chmod=640 /web /web
COPY ./web /web
COPY ./src/web /web
RUN set -eux; \
chown -R www-data:www-data /web; \
find /web -type d -exec chmod 750 {} \; ; \
find /web -type f -exec chmod 640 {} \; ;

COPY ./heatmaps /heatmaps
COPY ./src/heatmaps /heatmaps
RUN set -eux; \
chown -R www-data:www-data /heatmaps; \
find /heatmaps -type d -exec chmod 750 {} \; ; \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ echo '127.0.0.1 web.example.com' | sudo tee -a /etc/hosts
echo '127.0.0.1 phpmyadmin.example.com' | sudo tee -a /etc/hosts
```

- [install.sql](./sql/install.sql) is mounted in `mysql` container which automatically installs the DB only on the first time. If you prefer not to mount `install.sql`, you may manually install the DB by logging into PHPMyAdmin and importing the `install.sql` there.
- [install.sql](./src/sql/install.sql) is mounted in `mysql` container which automatically installs the DB only on the first time. If you prefer not to mount `install.sql`, you may manually install the DB by logging into PHPMyAdmin and importing the `install.sql` there.
- `traefik` serves HTTPS with a self-signed cert. All HTTP requests are redirected to HTTPS.

### Upgrading (docker)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ services:
- MYSQL_DATABASE=hlstatsxce
volumes:
- db-volume:/var/lib/mysql
- ./sql/install.sql:/docker-entrypoint-initdb.d/install.sql:ro # This seeds the DB only on the first time
- ./src/sql/install.sql:/docker-entrypoint-initdb.d/install.sql:ro # This seeds the DB only on the first time
networks:
- default

Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ services:
- MYSQL_DATABASE=hlstatsxce
volumes:
- db-volume:/var/lib/mysql
- ./sql/install.sql:/docker-entrypoint-initdb.d/install.sql:ro # This seeds the DB only on the first time
- ./src/sql/install.sql:/docker-entrypoint-initdb.d/install.sql:ro # This seeds the DB only on the first time
networks:
- default

Expand All @@ -135,7 +135,7 @@ services:
context: .
target: dev
volumes:
- ./web:/web
- ./src/web:/web
# - ./config/web/supervisor.conf:/supervisor.conf:ro
# - ./config/web/etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
# - ./config/web/usr/local/etc/php/conf.d/php.ini:/usr/local/etc/php/conf.d/php.ini:ro
Expand Down Expand Up @@ -165,8 +165,8 @@ services:
context: .
target: dev
volumes:
- ./heatmaps:/heatmaps
- ./web:/web
- ./src/heatmaps:/heatmaps
- ./src/web:/web
environment:
- DB_HOST=db
- DB_NAME=hlstatsxce
Expand Down Expand Up @@ -216,7 +216,7 @@ services:
init-container:
image: alpine:latest
volumes:
- ./web:/web
- ./src/web:/web
- db-volume:/var/lib/mysql
networks:
- default
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 06595ec

Please sign in to comment.