Improves loading of Push Adapter, fix loading of S3Adapter

- Adds environment variables to configure S3Adapter
This commit is contained in:
Florent Vilmart
2016-03-04 10:54:32 -05:00
parent 3e6c53c3e4
commit 069605e9c3
3 changed files with 20 additions and 25 deletions

View File

@@ -133,7 +133,8 @@ function ParseServer({
const filesControllerAdapter = loadAdapter(filesAdapter, () => {
return new GridStoreAdapter(databaseURI);
});
const pushControllerAdapter = loadAdapter(push, ParsePushAdapter);
// Pass the push options too as it works with the default
const pushControllerAdapter = loadAdapter(push && push.adapter, ParsePushAdapter, push);
const loggerControllerAdapter = loadAdapter(loggerAdapter, FileLoggerAdapter);
const emailControllerAdapter = loadAdapter(emailAdapter);
// We pass the options and the base class for the adatper,