78 lines
2.3 KiB
Plaintext
78 lines
2.3 KiB
Plaintext
|
|
8750e825f27d77a16755a7b14a9622fe6d4653ceaab2dd5645bbc89b5702fa1d
|
|
*********************************************
|
|
Updating Microsoft CODE editor
|
|
Download the .deb file for 64 bit
|
|
execute it
|
|
sudo dpkg -i code_1.8.1-1482159060_i386.deb
|
|
|
|
|
|
|
|
HANDLEBARS
|
|
=-=-=-=-=-
|
|
Install:
|
|
sudo npm install -g handlebars
|
|
|
|
Build handlebars template:
|
|
handlebars -m wwwroot/js/templates/> wwwroot/js/templates/templates.js
|
|
|
|
|
|
|
|
|
|
3rd party Packages used:
|
|
JWT JSON web token support using jose-jwt found here:
|
|
https://jwt.io/#libraries
|
|
|
|
Mailkit (supposedly system.net.mail will be ported in v2.0 of .net core but for now mailkit is the shit):
|
|
<!-- NOTE: bouncycastle needed for license gen but mailkit brings a slightly different one in so there is a conflict but just removing bouncycastle works because the license code uses teh mailkit bouncycastle-->
|
|
<!--PackageReference Include="bouncycastle.netcore" Version="1.8.1.3" /-->
|
|
|
|
|
|
|
|
DEVICE METRICS LIST
|
|
https://material.io/devices/
|
|
|
|
John phone 411px wide (dp)
|
|
Joyce s7 360px wide (dp)
|
|
|
|
|
|
***********************
|
|
HOW TO DEPLOY
|
|
|
|
0) Inject fresh manifest for workbox:
|
|
"When you make a change to your project, run the inject manifest command and you'll have an up to date service worker with precache support."
|
|
|
|
workbox injectManifest
|
|
|
|
https://developers.google.com/web/tools/workbox/guides/precache-files/cli
|
|
|
|
1) SET VERSION
|
|
|
|
RENAME ?plvx.x parameter in index.html to the new version so all files update on mobile
|
|
|
|
2) PUBLISH
|
|
publish command line from pecklist folder:
|
|
|
|
//this will build a release version which is what we use on the server now
|
|
//DEPRECATED dotnet publish -c Release -o ./../publish/
|
|
//this will build for our ubunutu linux server
|
|
dotnet publish -c Release -o ./../publish/ --no-self-contained -r linux-x64
|
|
|
|
//This is what I have seen online, not sure why the -f is necessary or useful, the build is the exact same size as above, have a question in to stackoverflow about it
|
|
//#### netcoreapp2?? This can't be right:
|
|
dotnet publish -f netcoreapp2.1 -c Release -o ./../publish/
|
|
|
|
//if need a debug version
|
|
dotnet publish -o ./../publish/
|
|
|
|
3) COPY
|
|
|
|
## MAKE BACKUP FIRST: cp -R pecklist pecklist_backup
|
|
|
|
Copy over to production server, only need the .dll and the wwwroot folder contents,
|
|
remember not to delete the folders on the server only replace their contents because there are Windows file permissions set
|
|
|
|
|
|
|
|
|
|
test test test |