Skip to content

Commit

Permalink
Merge pull request scpwiki#1009 from scpwiki/deepwell-database
Browse files Browse the repository at this point in the history
Add .env file for API service in dev/prod
  • Loading branch information
Ammon Smith authored May 26, 2022
2 parents 3715291 + 92a7cb9 commit 9b3c255
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions install/aws/dev/docker/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN apk add --no-cache curl
COPY --from=rust /src/deepwell/target/release/deepwell /usr/local/bin/deepwell
COPY ./locales/fluent /opt/locales/fluent
COPY ./install/files/api/health-check.sh /bin/wikijump-health-check
COPY ./install/files/dev/api_env /.env

USER daemon
CMD ["/usr/local/bin/deepwell"]
2 changes: 1 addition & 1 deletion install/aws/dev/docker/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ COPY ./web /var/www/wikijump/web
# Inject values in the wikijump.ini and .env configuration files
USER root
COPY ./install/files/${ENVIRONMENT}/wikijump.ini conf/wikijump.ini
COPY ./install/files/${ENVIRONMENT}/env .env
COPY ./install/files/${ENVIRONMENT}/php_env .env

RUN sed -i "s/%%BASE_DOMAIN%%/${MAIN_DOMAIN}/g" conf/wikijump.ini && \
sed -i "s/%%MAIN_WIKI%%/${WWW_DOMAIN}/g" conf/wikijump.ini && \
Expand Down
1 change: 1 addition & 0 deletions install/aws/prod/docker/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN apk add --no-cache curl
COPY --from=rust /src/deepwell/target/release/deepwell /usr/local/bin/deepwell
COPY ./locales/fluent /opt/locales/fluent
COPY ./install/files/api/health-check.sh /bin/wikijump-health-check
COPY ./install/files/prod/api_env /.env

USER daemon
CMD ["/usr/local/bin/deepwell"]
2 changes: 1 addition & 1 deletion install/aws/prod/docker/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ COPY ./web /var/www/wikijump/web
# Inject values in the wikijump.ini and .env configuration files
USER root
COPY ./install/files/${ENVIRONMENT}/wikijump.ini conf/wikijump.ini
COPY ./install/files/${ENVIRONMENT}/env .env
COPY ./install/files/${ENVIRONMENT}/php_env .env

RUN sed -i "s/%%BASE_DOMAIN%%/${MAIN_DOMAIN}/g" conf/wikijump.ini && \
sed -i "s/%%MAIN_WIKI%%/${WWW_DOMAIN}/g" conf/wikijump.ini && \
Expand Down
1 change: 1 addition & 0 deletions install/files/dev/api_env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgres://wikijump:wikijump@database/wikijump
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions install/files/prod/api_env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgres://wikijump:wikijump@database/wikijump
File renamed without changes.
2 changes: 1 addition & 1 deletion install/local/dev/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ COPY ./web /var/www/wikijump/web
# Inject values in the wikijump.ini and .env configuration files
USER root
COPY ./install/files/${ENVIRONMENT}/wikijump.ini conf/wikijump.ini
COPY ./install/files/${ENVIRONMENT}/env .env
COPY ./install/files/${ENVIRONMENT}/php_env .env

RUN sed -i "s/%%BASE_DOMAIN%%/${MAIN_DOMAIN}/g" conf/wikijump.ini && \
sed -i "s/%%MAIN_WIKI%%/${WWW_DOMAIN}/g" conf/wikijump.ini && \
Expand Down

0 comments on commit 9b3c255

Please sign in to comment.