Merge branch 'release' of gitlab.com:theappsmith/internal-tools-server into release

This commit is contained in:
Trisha Anand 2020-04-02 17:17:52 +05:30
commit 2e09f7923c
4 changed files with 10 additions and 6 deletions

View File

@ -1,9 +1,11 @@
package com.appsmith.server.configurations;
import com.rollbar.notifier.Rollbar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import static com.rollbar.notifier.config.ConfigBuilder.withAccessToken;
@ -13,8 +15,13 @@ public class RollbarConfig {
@Value("${com.rollbar.access-token}")
String rollbarAccessToken;
@Autowired
Environment env;
@Bean
Rollbar rollbarConfiguration() {
return Rollbar.init(withAccessToken(rollbarAccessToken).build());
return Rollbar.init(withAccessToken(rollbarAccessToken)
.environment(env.getActiveProfiles()[0])
.build());
}
}

View File

@ -31,7 +31,6 @@ oauth2.allowed-domains=
# These properties are intentionally set to random values so that events are not sent to either of them during local development
segment.writeKey=random-value
com.rollbar.access-token=random-value
com.rollbar.environment=development
# Redis Properties
spring.redis.host=redis

View File

@ -31,7 +31,6 @@ spring.security.oauth2.client.provider.github.userNameAttribute=login
# These properties are intentionally set to random values so that events are not sent to either of them during local development
segment.writeKey=random-value
com.rollbar.access-token=random-value
com.rollbar.environment=development
# Redis Properties
spring.redis.host=127.0.0.1

View File

@ -28,11 +28,10 @@ oauth2.allowed-domains=
# Segment & Rollbar Properties
segment.writeKey=B3UBOacfOky4l6dfk5xyR6Dh8vUZYizW
com.rollbar.access-token=b91c4d5b9cac444088f4db9216ed6f42
com.rollbar.environment=development
# Redis Properties
spring.redis.host=ec2-52-19-170-171.eu-west-1.compute.amazonaws.com
spring.redis.port=10639
spring.redis.host=ec2-34-254-16-19.eu-west-1.compute.amazonaws.com
spring.redis.port=18689
spring.redis.user=h
spring.redis.password=p46c3e6d77c32e6f1026f16ae781911d8a2631ece413406a75fc31b0cfb9edb03