mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 04:54:23 +00:00
finish for deploy
This commit is contained in:
@@ -9,6 +9,7 @@ const app = createApp(App)
|
|||||||
app.use(createPinia())
|
app.use(createPinia())
|
||||||
app.use(router)
|
app.use(router)
|
||||||
|
|
||||||
localStorage.setItem( 'url', 'http://localhost:8082' );
|
// localStorage.setItem( 'url', 'http://localhost:8082' );
|
||||||
|
localStorage.setItem( 'url', 'https://music-api.janishutz.com' );
|
||||||
|
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"backendURL": "http://localhost:8083",
|
||||||
|
"name": "testing",
|
||||||
|
"signingSecret": "test"
|
||||||
|
}
|
||||||
@@ -18,8 +18,8 @@ if ( typeof( __dirname ) === 'undefined' ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Change config file, as well as in main.ts, index.html, oauth, if deploying there
|
// TODO: Change config file, as well as in main.ts, index.html, oauth, if deploying there
|
||||||
const sdkConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.testing.json' ) ) );
|
// const sdkConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.testing.json' ) ) );
|
||||||
// const sdkConfig: AuthSDKConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.secret.json' ) ) );
|
const sdkConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.secret.json' ) ) );
|
||||||
|
|
||||||
const run = () => {
|
const run = () => {
|
||||||
let app = express();
|
let app = express();
|
||||||
@@ -27,11 +27,8 @@ const run = () => {
|
|||||||
credentials: true,
|
credentials: true,
|
||||||
origin: true
|
origin: true
|
||||||
} ) );
|
} ) );
|
||||||
storeSDK.configure( {
|
// storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.testing.json' ) ) ) );
|
||||||
backendURL: 'http://localhost:8083',
|
storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.secret.json' ) ) ) );
|
||||||
name: 'testing',
|
|
||||||
signingSecret: 'test',
|
|
||||||
} );
|
|
||||||
|
|
||||||
const httpServer = createServer( app );
|
const httpServer = createServer( app );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user