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(router)
|
||||
|
||||
localStorage.setItem( 'url', 'http://localhost:8082' );
|
||||
// localStorage.setItem( 'url', 'http://localhost:8082' );
|
||||
localStorage.setItem( 'url', 'https://music-api.janishutz.com' );
|
||||
|
||||
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
|
||||
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.testing.json' ) ) );
|
||||
const sdkConfig = JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/sdk.config.secret.json' ) ) );
|
||||
|
||||
const run = () => {
|
||||
let app = express();
|
||||
@@ -27,11 +27,8 @@ const run = () => {
|
||||
credentials: true,
|
||||
origin: true
|
||||
} ) );
|
||||
storeSDK.configure( {
|
||||
backendURL: 'http://localhost:8083',
|
||||
name: 'testing',
|
||||
signingSecret: 'test',
|
||||
} );
|
||||
// storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.testing.json' ) ) ) );
|
||||
storeSDK.configure( JSON.parse( '' + fs.readFileSync( path.join( __dirname + '/config/store-sdk.config.secret.json' ) ) ) );
|
||||
|
||||
const httpServer = createServer( app );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user