Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
9f1ba0a3
Commit
9f1ba0a3
authored
Sep 06, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: elastic apm rum client script
parent
af054257
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
2.5.108.js
server/db/migrations-sqlite/2.5.108.js
+0
-1
code.yml
server/modules/analytics/elasticapm/code.yml
+8
-6
No files found.
server/db/migrations-sqlite/2.5.108.js
View file @
9f1ba0a3
...
...
@@ -3,7 +3,6 @@ const has = require('lodash/has')
exports
.
up
=
async
knex
=>
{
// -> Fix 2.5.1 added isEnabled columns for beta users
const
localStrategy
=
await
knex
(
'authentication'
).
where
(
'key'
,
'local'
).
first
()
console
.
info
(
localStrategy
)
if
(
localStrategy
&&
!
has
(
localStrategy
,
'isEnabled'
))
{
await
knex
.
schema
.
alterTable
(
'authentication'
,
table
=>
{
...
...
server/modules/analytics/elasticapm/code.yml
View file @
9f1ba0a3
head
:
|
<!-- Elastic APM RUM -->
<script async src="https://unpkg.com/@elastic/apm-rum/dist/bundles/elastic-apm-rum.umd.min.js"></script>
<script>
elasticApm.init({
serviceName: '{{serviceName}}',
serverUrl: '{{serverUrl}}',
environment: '{{environment}}'
})
;(function(d, s, c) {
var j = d.createElement(s),
t = d.getElementsByTagName(s)[0]
j.src = 'https://unpkg.com/@elastic/apm-rum/dist/bundles/elastic-apm-rum.umd.min.js'
j.onload = function() {elasticApm.init(c)}
t.parentNode.insertBefore(j, t)
})(document, 'script', {serviceName: '{{serviceName}}', serverUrl: '{{serverUrl}}', environment: '{{environment}}'})
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment