Skip to content

Commit

Permalink
Merge pull request #205 from gcivil-nyu-org/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-zaharchenko17 committed Dec 11, 2023
2 parents b608cdc + b3eb280 commit 8378c4b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@ deploy:
bucket: $BUCKET_NAME_UE1
env: soloconnect-chat-integration
on:
branch: develop
branch: develop
- provider: elasticbeanstalk
access_key_id: $ACCESS_KEY_ID
secret_access_key: $SECRET_ACCESS_KEY
region: $REGION_UE1
app: $APP_NAME
bucket: $BUCKET_NAME_UE1
env: soloconnect-chat-production
on:
branch: master
10 changes: 6 additions & 4 deletions soloconnect/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
"localhost",
"127.0.0.1",
"172.31.31.138",
"172.31.35.113",
"soloconnect-integration.us-east-1.elasticbeanstalk.com",
"soloconnect-db-final.us-west-2.elasticbeanstalk.com",
"soloconnect-production.us-east-1.elasticbeanstalk.com",
"testserver",
"soloconnect-chat-integration.us-east-1.elasticbeanstalk.com",
"soloconnect-chat-production.us-east-1.elasticbeanstalk.com",
]

# Application definition
Expand Down Expand Up @@ -175,24 +177,24 @@
EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
EMAIL_PORT = 587

REDIS_HOST = os.getenv("REDIS_HOST")
REDIS_CACHE_LOCATION = os.getenv("REDIS_CACHE_LOCATION")

CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [
# todo Uncomment host and comment redis url if you want to run locally
# ("127.0.0.1", 6379)
(
"sc-redis.45ncis.ng.0001.use1.cache.amazonaws.com",
REDIS_HOST,
6379,
),
],
},
"CACHES": {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": "redis://sc-redis.45ncis.ng.0001.use1.cache.amazonaws.com:6379/1",
"LOCATION": REDIS_CACHE_LOCATION,
}
},
},
Expand Down

0 comments on commit 8378c4b

Please sign in to comment.