-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Add URL prefix to ember app #2238
Add URL prefix to ember app #2238
Conversation
@NullVoxPopuli - you can test it by spinning up the whole website locally. Ideally you'd update the link in the index page and learn.json file as well to point to the dist folder. |
// rootURL: '', | ||
// locationType: 'none', | ||
rootURL: '/', | ||
rootURL: '/examples/ember/dist/', |
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.
should this point to the 'emberjs' folder instead of 'ember' ?
similar the other references in the index.html file?
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.
probably -- that's why I asked for a local way to run the server or build the repo, so I could verify 💪
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.
should probably also be /examples/emberjs/todomvc/dist
if the structure matches what's in the repo?
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.
I would probably only change the rootURL for production, since you want to be able to work locally in the emberjs/todomvc directory and spin up the app directly.
How about this:
if (environment === 'production') {
// here you can enable a production-specific feature
ENV.rootURL = '/examples/emberjs/todomvc/dist/';
}
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.
the URL prefix is still usable in development locally
woah, Node 8.17.0. installation takes forever 🙃
thanks!
can do! |
hm, installation isn't succeeding for me, I'm getting this:
(I've had to ctrl+c, because it hung on extracting unicode) |
hmm I don't remember running into that issue. |
|
||
|
||
|
||
|
||
<link integrity="" rel="stylesheet" href="/assets/todomvc.d41d8cd98f00b204e9800998ecf8427e.css"> | ||
<link integrity="" rel="stylesheet" href="/examples/ember/dist/assets/todomvc.d41d8cd98f00b204e9800998ecf8427e.css"> |
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.
with the above change and running build:production, the new output should automatically have the correct path appended.
can we also change the links in the index.html and learn.json?
|
any chance node can be upgraded to a supported version? 😅 |
I've guessed at these values in the latest commit(s). |
It's on our todo list 😄 |
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.
LGTM 😄
nit: we could delete emberjs/assets
and emberjs/index.html
I believe?
oh yeah, those symlinks -- those confused me, but now I understand why they were there. They are deleted. |
Resolves #2235
Do we have a way to test this beforehand?
Locally, it runs at http://localhost:4200/examples/ember/