Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aht007 committed Sep 6, 2022
1 parent 9ab5f12 commit 93bae51
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 16 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ RUN ./node_modules/.bin/bower install --allow-root --production
# every time any bit of code is changed.
COPY . .
COPY /configuration_files/discovery_gunicorn.py ${DISCOVERY_HOME}/discovery_gunicorn.py
# deleted this file completely and defined the env variables in dockerfile's respective target images.
# COPY configuration_files/discovery_env ${DISCOVERY_HOME}/discovery_env
COPY /configuration_files/discovery-workers.sh ${DISCOVERY_HOME}/discovery-workers.sh
COPY /configuration_files/discovery.yml ${DISCOVERY_CFG}
COPY /scripts/discovery.sh ${DISCOVERY_HOME}/discovery.sh
Expand Down
3 changes: 1 addition & 2 deletions configuration_files/discovery-workers.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash

# Ansible managed


source /edx/app/discovery/discovery_env

Expand Down
1 change: 0 additions & 1 deletion configuration_files/discovery.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# Ansible managed


API_ROOT: null
Expand Down
4 changes: 0 additions & 4 deletions configuration_files/discovery_gunicorn.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""
gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
Ansible managed
"""

timeout = 300
Expand All @@ -11,8 +10,5 @@

limit_request_field_size = 16384




def pre_request(worker, req):
worker.log.info("%s %s" % (req.method, req.path))
4 changes: 0 additions & 4 deletions configuration_files/supervisor.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Ansible managed
#

[program:nginx]
command=nginx -g 'daemon off;'
killasgroup=true
Expand Down
1 change: 0 additions & 1 deletion scripts/devstack.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash

# Ansible managed

source /edx/app/discovery/discovery_env
COMMAND=$1
Expand Down
3 changes: 1 addition & 2 deletions scripts/discovery.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash

# Ansible managed


export EDX_REST_API_CLIENT_NAME="default_env-default_deployment-discovery"

Expand Down

0 comments on commit 93bae51

Please sign in to comment.