Skip to content
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

grunt dev admin livereload #8176

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

kevinansfield
Copy link
Member

@kevinansfield kevinansfield commented Mar 16, 2017

refs #8161, requires TryGhost/Admin#590

  • adds a development-only route to the admin app that redirects to ember-cli's livereload script
  • updates Gruntfile watch task to pass the live-reload-base-url param with subdirectory support
  • updates Gruntfile bgShell:client task to filter potentially confusing output from ember serve
    • removes Livereload server on http://localhost:49153
    • removes Serving on http://localhost:4200/

With this and the required Ghost-Admin PR, when using grunt dev the admin screen will refresh any time a file is changed. It will also allow client tests to be run simultaneously by visiting http://localhost:4200/tests

With this and the required Ghost-Admin PR, when using grunt dev the admin screen will refresh any time a file is changed. It will also allow client tests to be run simultaneously by visiting http://localhost:4200/tests

TODO:

  • make admin route only available in development mode
  • update admin route to use subdirectory
  • update subgrunt:watch task to pass configured subdirectory as live-reload-base-url option
  • see if it's possible to suppress the ember serve output to avoid confusion (see example below)

@kirrg001
Copy link
Contributor

exciting 🙃

@kevinansfield kevinansfield mentioned this pull request Mar 27, 2017
8 tasks
@kevinansfield kevinansfield changed the title [WIP] ✨ grunt dev admin livereload grunt dev admin livereload Mar 28, 2017
// Ember CLI's live-reload script
if (config.get('env') === 'development') {
adminApp.get('/ember-cli-live-reload.js', function(req, res) {
res.redirect(`http://localhost:4200${utils.url.getSubdir()}/ghost/ember-cli-live-reload.js`);

This comment was marked as abuse.

@kevinansfield kevinansfield force-pushed the admin-livereload branch 2 times, most recently from 2f60983 to d3c8766 Compare March 30, 2017 10:21
refs TryGhost#8161, requires TryGhost/Admin#590
- adds a development-only route to the admin app that redirects to ember-cli's livereload script
- updates Gruntfile `watch` task to pass the `live-reload-base-url` param with subdirectory support
- updates Gruntfile `bgShell:client` task to filter potentially confusing output from `ember serve`
  - removes `Livereload server on http://localhost:49153`
  - removes `Serving on http://localhost:4200/`

With this and the required Ghost-Admin PR, when using `grunt dev` the admin screen will refresh any time a file is changed. It will also allow client tests to be run simultaneously by visiting http://localhost:4200/tests
@ErisDS ErisDS merged commit c9e0c25 into TryGhost:master Mar 30, 2017
@ErisDS ErisDS deleted the admin-livereload branch March 30, 2017 12:27
@kevinansfield kevinansfield mentioned this pull request Apr 5, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants