-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve static pages from app.yaml #6974
Changes from 1 commit
0bc53bb
df266a2
8b63d34
9106197
6d2cdb9
77fc41d
e3f24b7
fff201a
9baa459
3458a6b
6df30d8
a209b4e
7ccbf19
04bd338
f27d23b
c6617b5
81922b9
9104bca
abddd81
33c6f79
d99be7c
bd7eca5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -587,5 +587,5 @@ var constants = { | |
|
||
"ALLOW_YAML_FILE_UPLOAD": false, | ||
|
||
"DEV_MODE": true | ||
"DEV_MODE": false | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,22 +96,27 @@ describe('Oppia static pages tour', function() { | |
it('visits the Get started page', function() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @seanlip, the tests are here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PTAL There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you assert for something that should exist in the page (to make sure it's not serving a 404)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
browser.get('/get_started'); | ||
waitFor.pageToFullyLoad(); | ||
expect(element(by.css('.protractor-test-get-started-page'))).toBe(true); | ||
}); | ||
|
||
it('visits the Teach page', function() { | ||
browser.get('/teach'); | ||
waitFor.pageToFullyLoad(); | ||
expect(element(by.css('.protractor-test-teach-page'))).toBe(true); | ||
}); | ||
|
||
it('visits the Splash pages', function() { | ||
browser.get('/splash'); | ||
waitFor.pageToFullyLoad(); | ||
expect(element(by.css('.protractor-test-splash-page'))).toBe(true); | ||
|
||
browser.get('/splash?c=at0'); | ||
waitFor.pageToFullyLoad(); | ||
expect(element(by.css('.protractor-test-splash-page'))).toBe(true); | ||
|
||
browser.get('/splash?c=at1'); | ||
waitFor.pageToFullyLoad(); | ||
expect(element(by.css('.protractor-test-splash-page'))).toBe(true); | ||
}); | ||
|
||
afterEach(function() { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per our discussion, let's just have one app.yaml file in the codebase so that there's a single source of truth.
@vojtechjelinek FYI we discussed having a template file from which to generate dev/prod, but then we figured that it would be better to just have the "dev" version in the codebase (as we do now) and then do the changes needed to transform it to the "prod" version (like we do with other files/folders). This means that we only have one indirectly-generated file rather than two (which is better, since indirect pipelines like this often lead to errors).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seanlip, should this file still be in the codebase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think so.