Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PraiseLink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TheDutchProgrammers
PraiseLink
Commits
6d64c86c
Verified
Commit
6d64c86c
authored
1 year ago
by
Miniontoby
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some stuff with deployment
parent
3aa0ee11
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
productionServer/envFixer.js
+9
-3
9 additions, 3 deletions
productionServer/envFixer.js
src/lib/config.js
+1
-1
1 addition, 1 deletion
src/lib/config.js
src/routes/(user)/musicsheets/[song=integer]/[id=integer]/+page.svelte
+1
-1
1 addition, 1 deletion
...ser)/musicsheets/[song=integer]/[id=integer]/+page.svelte
with
11 additions
and
5 deletions
productionServer/envFixer.js
+
9
−
3
View file @
6d64c86c
if
(
!
process
.
env
?.
PORT
)
if
(
!
process
.
env
?.
IP
)
process
.
env
.
PORT
=
'
3000
'
;
process
.
env
.
IP
=
process
.
env
?.
INTERNAL_IP
??
process
.
env
?.
SERVER_IP
??
'
localhost
'
;
if
(
!
process
.
env
?.
PORT
)
process
.
env
.
PORT
=
process
.
env
?.
SERVER_PORT
??
'
3000
'
;
if
(
!
process
.
env
?.
ORIGIN
)
if
(
!
process
.
env
?.
ORIGIN
)
process
.
env
.
ORIGIN
=
`http://localhost:
${
process
.
env
.
PORT
}
`
;
process
.
env
.
ORIGIN
=
process
.
env
?.
HOSTNAME
??
`http://
${
process
.
env
.
IP
}
:
${
process
.
env
.
PORT
}
`
;
process
.
env
.
PUBLIC_ORIGIN
=
process
.
env
.
ORIGIN
;
This diff is collapsed.
Click to expand it.
src/lib/config.js
+
1
−
1
View file @
6d64c86c
import
{
dev
}
from
'
$app/environment
'
;
import
{
dev
}
from
'
$app/environment
'
;
import
Roles
from
'
$lib/roles
'
;
import
Roles
from
'
$lib/roles
'
;
const
currentImportMetaURL
=
new
URL
(
import
.
meta
.
url
).
origin
;
const
currentImportMetaURL
=
env
.
PUBLIC_ORIGIN
??
new
URL
(
import
.
meta
.
url
).
origin
;
export
const
url
=
String
(
currentImportMetaURL
)
!==
'
null
'
&&
currentImportMetaURL
!==
''
?
currentImportMetaURL
:
(
dev
?
'
http://localhost:5173
'
:
'
https://somedomain.com
'
);
export
const
url
=
String
(
currentImportMetaURL
)
!==
'
null
'
&&
currentImportMetaURL
!==
''
?
currentImportMetaURL
:
(
dev
?
'
http://localhost:5173
'
:
'
https://somedomain.com
'
);
export
const
navs
=
[
export
const
navs
=
[
...
...
This diff is collapsed.
Click to expand it.
src/routes/(user)/musicsheets/[song=integer]/[id=integer]/+page.svelte
+
1
−
1
View file @
6d64c86c
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
"
ChordPro
"
:
ChordSheetJS
.
ChordProParser
,
"
ChordPro
"
:
ChordSheetJS
.
ChordProParser
,
}
}
const
parser
=
new
parsers
[
'
Chord
sOverWords
'
]();
const
parser
=
new
parsers
[
'
Chord
Pro
'
]();
const
songSheet
=
parser
.
parse
(
musicsheet
?.
file
);
const
songSheet
=
parser
.
parse
(
musicsheet
?.
file
);
const
formatter
=
new
ChordSheetJS
.
TextFormatter
();
const
formatter
=
new
ChordSheetJS
.
TextFormatter
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment