forked from Archives/Athou_commafeed
added config element for context path (fix #611)
This commit is contained in:
@@ -130,6 +130,8 @@ public class CommaFeedApplication extends Application<CommaFeedConfiguration> {
|
||||
|
||||
@Override
|
||||
public void run(CommaFeedConfiguration config, Environment environment) throws Exception {
|
||||
environment.getApplicationContext().setContextPath(config.getApplicationSettings().getContextPath());
|
||||
|
||||
MetricRegistry metrics = environment.metrics();
|
||||
SessionFactory sessionFactory = hibernateBundle.getSessionFactory();
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@ public class CommaFeedConfiguration extends Configuration {
|
||||
|
||||
@Getter
|
||||
public static class ApplicationSettings {
|
||||
@JsonProperty
|
||||
private String contextPath;
|
||||
|
||||
@JsonProperty
|
||||
private String publicUrl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user