Skip to content

Commit

Permalink
Remove host from environment variables (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvillavicencio authored May 6, 2024
1 parent 85e1a18 commit 5838ed2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ jobs:
echo "DISCORD_BOT_PUBLIC_KEY=${{ secrets.DISCORD_BOT_PUBLIC_KEY }}" >> .env
echo "MONGO_DB_ROOT_USERNAME=${{ secrets.MONGO_INITDB_ROOT_USERNAME }}" >> .env
echo "MONGO_DB_ROOT_PASSWORD=${{ secrets.MONGO_INITDB_ROOT_PASSWORD }}" >> .env
echo "MONGO_DB_HOST=${{ secrets.MONGO_DB_HOST }}" >> .env
echo "REDIS_HOST=${{ secrets.REDIS_HOST }}" >> .env
chmod 600 .env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
@EnableCaching
@SpringBootApplication
@EnableAspectJAutoProxy
public class Destiny2botApplication {
public class RivenBotApplication {

public static void main(String[] args) {
SpringApplication.run(Destiny2botApplication.class, args);
SpringApplication.run(RivenBotApplication.class, args);
}

@Bean
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
spring:
data:
redis:
host: localhost
mongodb:
host: localhost

application:
callback:
# Replace with your own callback url masking port 8080 to run locally
Expand Down
9 changes: 8 additions & 1 deletion src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
spring:
data:
redis:
host: redis
mongodb:
host: mongo

application:
callback:
url: https://d2discord.app
url: https://rivenbot.app
2 changes: 0 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ spring:
data:
redis:
port: 6379
host: ${REDIS_HOST}
mongodb:
username: ${MONGO_DB_ROOT_USERNAME}
password: ${MONGO_DB_ROOT_PASSWORD}
authentication-database: admin
database: riven_of_a_thousand_servers
host: ${MONGO_DB_HOST}
port: 27017

bungie:
Expand Down

0 comments on commit 5838ed2

Please sign in to comment.