Skip to content

Commit

Permalink
revert to e1be51a
Browse files Browse the repository at this point in the history
  • Loading branch information
RotateAt60MPH committed Mar 29, 2024
1 parent 44673ae commit 41096f1
Show file tree
Hide file tree
Showing 14 changed files with 119 additions and 195 deletions.
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PROJECT_VERSION=4
PLAYER_PUBLIC_URL=/player
PUBLIC_URL=/designer
API_URL=https://logan.cardinalcreek.ca/olab/api/v3
PUBLIC_URL=/
xAPI_URL=https://localhost:7071/olab/api/v3
API_URL=https://olabdevapi.azurewebsites.net/olab/api/v3
NODE_ENV=production
5 changes: 0 additions & 5 deletions .env.azure

This file was deleted.

5 changes: 0 additions & 5 deletions .env.debug

This file was deleted.

4 changes: 0 additions & 4 deletions .env.development

This file was deleted.

4 changes: 0 additions & 4 deletions .env.production

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ typings/
.yarn-integrity

# dotenv environment variables file
#.env
.env

# next.js build output
.next
Expand Down
21 changes: 4 additions & 17 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,20 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"address": "10.168.1.85",
"port": 9229,
"localRoot": "${workspaceRoot}",
"remoteRoot": "/home/wirunc/devel/debug/Designer",
"restart": false,
"sourceMaps": false,
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "node",
"envFile": "${workspaceFolder}/.env.debug"
},
{
"name": "Firefox",
"type": "firefox",
"request": "launch",
"reAttach": true,
"url": "http://localhost:3000",
"url": "http://localhost:4000",
"webRoot": "${workspaceFolder}/build"
},
{
"name": "Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
"type": "chrome",
"url": "http://localhost:4000",
"webRoot": "${workspaceFolder}/build"
}
]
}
20 changes: 1 addition & 19 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
#!/bin/bash
set -x
if [ $# -eq 0 ]
then
echo "No arguments supplied: release | debug"
exit -1
fi
git pull
if [ ! -L "build" ]; then
ln -s /var/www/vhosts/olab46/$1/designer$1 build
fi

npm install

if [ "$1" == "debug" ]; then
npx webpack --node-env development
fi

if [ "$1" == "release" ]; then
npx webpack --node-env production
fi

npm run build
service nginx restart


151 changes: 64 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 41096f1

Please sign in to comment.