Skip to content

Commit

Permalink
removed unsuded vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rhherrera committed Nov 29, 2017
1 parent 61c72b4 commit cd4ee1a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions backend/conduit/settings/ec2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import boto3
import json
import os

from botocore.exceptions import ClientError

Expand All @@ -10,11 +9,6 @@
client = boto3.client('ssm')
PARAMETERS_PATH = '/prod/api/'

EC2_HOSTNAME = os.environ['EC2_PUBLIC_HOSTNAME']
EC2_IP = os.environ['EC2_PUBLIC_IP']
EC2_LOCAL_IP = os.environ['EC2_LOCAL_IP']


def get_parameter(name, with_decryption=False, default=None):
try:
response = client.get_parameter(
Expand Down
9 changes: 0 additions & 9 deletions infrastructure/aws/codedeploy/after_install
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,5 @@ export AWS_DEFAULT_REGION
DJANGO_SETTINGS_MODULE='conduit.settings.ec2'
export DJANGO_SETTINGS_MODULE

EC2_PUBLIC_HOSTNAME="$(curl -s http://169.254.169.254/latest/meta-data/public-hostname)"
export EC2_PUBLIC_HOSTNAME

EC2_PUBLIC_IP="$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4)"
export EC2_PUBLIC_IP

EC2_LOCAL_IP="$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)"
export EC2_LOCAL_IP

pipenv run python manage.py migrate
pipenv run python manage.py collectstatic --no-input
9 changes: 0 additions & 9 deletions infrastructure/aws/codedeploy/start_server
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,4 @@ export AWS_DEFAULT_REGION
DJANGO_SETTINGS_MODULE='conduit.settings.ec2'
export DJANGO_SETTINGS_MODULE

EC2_PUBLIC_HOSTNAME="$(curl -s http://169.254.169.254/latest/meta-data/public-hostname)"
export EC2_PUBLIC_HOSTNAME

EC2_PUBLIC_IP="$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4)"
export EC2_PUBLIC_IP

EC2_LOCAL_IP="$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)"
export EC2_LOCAL_IP

pipenv run gunicorn --config ../infrastructure/aws/codedeploy/gunicorn.ec2.conf conduit.wsgi

0 comments on commit cd4ee1a

Please sign in to comment.