From 812f5404dc47dabcc02304be9ab0699db4dd7bc9 Mon Sep 17 00:00:00 2001 From: Ryunosuke Sato Date: Tue, 8 Oct 2024 23:02:38 +0900 Subject: [PATCH] Fix setup ember app script Previous script changes unexpectedly. Before; ``` diff $ g df config/environment.js diff --git a/config/environment.js b/config/environment.js index 5513a9a..772ff99 100644 --- a/config/environment.js +++ b/config/environment.js @@ -5,7 +5,7 @@ module.exports = function (environment) { modulePrefix: 'my-app', environment, rootURL: '/', - locationType: 'auto', + locationType: 'hash', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build @@ -40,7 +40,7 @@ module.exports = function (environment) { ENV.APP.LOG_VIEW_LOOKUPS = false; ENV.APP.rootElement = '#ember-testing'; - ENV.APP.autoboot = false; + ENV.APP.hashboot = false; } if (environment === 'production') { ``` After ``` diff diff --git a/config/environment.js b/config/environment.js index 5513a9a..6b7495e 100644 --- a/config/environment.js +++ b/config/environment.js @@ -5,7 +5,7 @@ module.exports = function (environment) { modulePrefix: 'my-app', environment, rootURL: '/', - locationType: 'auto', + locationType: 'hash', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build ``` --- bin/setup_ember | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/setup_ember b/bin/setup_ember index 8af90698..e3dc140c 100755 --- a/bin/setup_ember +++ b/bin/setup_ember @@ -9,7 +9,7 @@ setup_ember() { git clone -b 'v4.0.0' https://github.com/ember-cli/ember-new-output.git $target echo '-- Make router catchall routes' - sed -i -e 's/auto/hash/' $target/config/environment.js + sed -i -e "s/'auto'/'hash'/" $target/config/environment.js echo '-- Add an image to a template' cp spec/fixtures/application.hbs $target/app/templates/application.hbs