Skip to content

Commit

Permalink
Fix setup ember app script
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
tricknotes committed Oct 8, 2024
1 parent 6508be5 commit 812f540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/setup_ember
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 812f540

Please sign in to comment.