-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove the extra entry points for running the development server and replace them with command line switches in the command for "npm start". This means we're left with a single index.jsx entry point in the Webpack configuration, which is almost certainly what we want. - Small changes for error free operation in production. - Add babel-gettext-extractor plugin to Webpack setup (using Cadasta fork of getsentry/babel-gettext-extractor, modified to work with Babel 6).
- Loading branch information
Ian Ross
committed
Feb 10, 2016
1 parent
93dc995
commit e5ed136
Showing
7 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,17 +17,20 @@ | |
} | ||
|
||
DJOSER.update({ | ||
'DOMAIN': 'cadasta.org', | ||
'DOMAIN': os.environ['DOMAIN'], | ||
}) | ||
|
||
# Adding localhost here for uWSGI debugging! | ||
ALLOWED_HOSTS = [os.environ['API_HOST'], 'localhost'] | ||
|
||
ADMINS = [('Cadasta platform admins', '[email protected]')] | ||
EMAIL_HOST = 'email-smtp.us-west-2.amazonaws.com' | ||
EMAIL_PORT = 465 | ||
EMAIL_USE_SSL = True | ||
EMAIL_HOST_USER = os.environ['EMAIL_HOST_USER'] | ||
EMAIL_HOST_PASSWORD = os.environ['EMAIL_HOST_PASSWORD'] | ||
SERVER_EMAIL = '[email protected]' | ||
DEFAULT_FROM_EMAIL = '[email protected]' | ||
|
||
# Debug logging... | ||
LOGGING = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const SETTINGS = { | ||
API_BASE: '{{ api_url }}' | ||
API_BASE: 'http://{{ api_url }}' | ||
}; | ||
|
||
export default SETTINGS; | ||
export default SETTINGS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters