Skip to content

Commit 8642d14

Browse files
committed
merge and add support for dev deployment branch changes
1 parent 5d6b014 commit 8642d14

19 files changed

+6059
-36278
lines changed

.env

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VUE_APP_API_URL=#{API_URL}#
2-
VUE_APP_CURR_ENV=#{CURR_ENV}#
3-
VUE_APP_NET_API_URL=#{NET_API_URL}#
1+
VITE_APP_API_URL=#{API_URL}#
2+
VITE_APP_CURR_ENV=#{CURR_ENV}#
3+
VITE_APP_NET_API_URL=#{NET_API_URL}#

index-ca-en.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
document.write(wet.builder.refFooter({}));
105105
</script>
106106

107+
<script type="module" src="/src/main.ts"></script>
107108
<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
108-
<script src="scripts/ramp4/ramp.js"></script>
109109

110110
<style>
111111
html {

index-ca-fr.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
document.write(wet.builder.refFooter({}));
105105
</script>
106106

107+
<script type="module" src="/src/main.ts"></script>
107108
<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
108-
<script src="scripts/ramp4/ramp.js"></script>
109109

110110
<style>
111111
html {

index.html

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
<script type="module" src="/src/main.ts"></script>
2222
<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
23-
<script src="scripts/ramp4/ramp.js"></script>
2423
</body>
2524
</html>
2625
<noscript>

package-lock.json

+5,870-34,802
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.

server/index.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ var cors = require('cors');
77
var moment = require('moment'); // require
88
const decompress = require('decompress');
99
const archiver = require('archiver');
10-
const axios = require('axios');
1110
const responseMessages = [];
1211
require('dotenv').config();
1312

1413
// CONFIGURATION
15-
PORT = 6040; // the Express server will run on this port.
16-
UPLOAD_PATH = process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? process.env.SERVER_UPLOAD_PATH : './files'; // files uploaded from the app will be uploaded to this folder (deleted after processing)
17-
TARGET_PATH = process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? process.env.SERVER_TARGET_PATH : './public'; // ZIP files in the UPLOAD_PATH folder will be extracted here.
18-
LOG_PATH = process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? process.env.SERVER_LOG_PATH : './logfile.txt'; // the path to the logfile
19-
ROUTE_PREFIX = process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? '/Storylines-Editor-STB-Server' : '';
14+
PORT = process.env.port ? process.env.port : 6040; // the Express server will run on this port.
15+
UPLOAD_PATH = process.env.SERVER_CURR_ENV && process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? process.env.SERVER_UPLOAD_PATH : './files'; // files uploaded from the app will be uploaded to this folder (deleted after processing)
16+
TARGET_PATH = process.env.SERVER_CURR_ENV && process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? process.env.SERVER_TARGET_PATH : './public'; // ZIP files in the UPLOAD_PATH folder will be extracted here.
17+
LOG_PATH = process.env.SERVER_CURR_ENV && process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? process.env.SERVER_LOG_PATH : './logfile.txt'; // the path to the logfile
18+
ROUTE_PREFIX = process.env.SERVER_CURR_ENV && process.env.SERVER_CURR_ENV !== '#{CURR_ENV}#' ? '/Storylines-Editor-STB-Server' : '';
2019

2120
// Create express app.
2221
var app = express();
@@ -107,7 +106,6 @@ app.route(ROUTE_PREFIX + '/retrieve/:id').get(function (req, res, next) {
107106
fs.access(PRODUCT_PATH, (error) => {
108107
if (!error) {
109108
const output = fs.createWriteStream(uploadLocation);
110-
111109
// This event listener is fired when the write stream has finished. This means that the
112110
// ZIP file should be correctly populated. Now, we can set the correct headers and send the
113111
// ZIP file to the client.
@@ -239,6 +237,6 @@ function logger(type, message) {
239237
}
240238

241239
// Run the express app on the IIS Port.
242-
var server = app.listen(process.env.PORT, function () {
243-
logger('INFO', `Storylines Express Server Started, PORT: ${process.env.PORT}`);
240+
var server = app.listen(PORT, function () {
241+
logger('INFO', `Storylines Express Server Started, PORT: ${PORT}`);
244242
});

0 commit comments

Comments
 (0)