-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor token bridge server to be deployable to Azure App Service
- Loading branch information
Showing
15 changed files
with
4,909 additions
and
2,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
Push-Location $PSScriptRoot\Server | ||
$env:DOTENV_CONFIG_PATH=".env.development" | ||
$Process = Start-Process node ("-r", "dotenv/config", "server") | ||
$Process = Start-Process npm "run start:dev" | ||
Start-Sleep -s 5 | ||
if ($Process.ExitCode -ne 0) { Start-Process node encrypt } | ||
if ($Process.ExitCode -ne 0) { Start-Process node "-r dotenv/config encrypt dotenv_config_path=./.env.development" } | ||
Pop-Location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.env* | ||
encrypted.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict' | ||
|
||
const { test } = require('tap') | ||
const build = require('./app') | ||
|
||
test('requests the "/" route', async t => { | ||
const app = build(); | ||
|
||
const response = await app.inject({ | ||
method: 'GET', | ||
url: '/Alive' | ||
}) | ||
t.equal(response.statusCode, 200, 'returns a status code of 200') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.