Skip to content

Commit

Permalink
Update Welcome template to pull from new DSN env setting
Browse files Browse the repository at this point in the history
  • Loading branch information
chasegiunta committed Feb 2, 2020
1 parent 88c153e commit 2291bc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<code>
Craft Version: {{ info.craftVersion }} (passed in as prop)<br />
Environment: {{ info.environment }} (passed in as prop)<br />
DB Name: <slot></slot> (passed in through slot)
DSN Settings: <slot></slot> (passed in through slot)
</code>
</div>
</template>
Expand All @@ -31,4 +31,4 @@ h1,
h2 {
font-weight: normal;
}
</style>
</style>
2 changes: 1 addition & 1 deletion templates/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
} %}

<hello-world :info="{{ info|json_encode }}">
{{ getenv('DB_DATABASE') }}
{{ getenv('DB_DSN') }}
</hello-world>
</div>

Expand Down

0 comments on commit 2291bc8

Please sign in to comment.