add deployment notes

This commit is contained in:
2023-10-11 09:57:08 +02:00
parent 470e3f3e91
commit e12a8cecee
5 changed files with 12 additions and 5 deletions

View File

@@ -1,7 +1,15 @@
- Website: Add ids to titles # DEPLOY
For deployment create the following items:
- libreevent-[VERSION HERE]-npm.zip (contains the node_modules folder from src/server)
- libreevent-[VERSION HERE]-prebuilt.zip (contains a ready-to-use compiled version of libreevent (main download))
- libreevent-[VERSION HERE]-full-icu.zip (contains the package.json file which can be used if full-icu is not enabled in Node.js)
# PLANS
- Website: Add ids to titles
- Update files to import when deploying for included json files instead of secret.json files - Update files to import when deploying for included json files instead of secret.json files
- Also remove /test/ routes - Also remove /test/ routes

View File

@@ -29,7 +29,6 @@ class GETHandler {
} else if ( call === 'getReservedSeats' ) { } else if ( call === 'getReservedSeats' ) {
if ( query.event ) { if ( query.event ) {
db.getDataSimple( 'temp', 'user_id', session.id ).then( dat => { db.getDataSimple( 'temp', 'user_id', session.id ).then( dat => {
// console.log( dat[ 0 ] ? JSON.parse( dat[ 0 ].data )[ query.event ] ?? {} : {} );
resolve( { 'user': dat[ 0 ] ? JSON.parse( dat[ 0 ].data )[ query.event ] ?? {} : {} } ); resolve( { 'user': dat[ 0 ] ? JSON.parse( dat[ 0 ].data )[ query.event ] ?? {} : {} } );
} ).catch( () => { } ).catch( () => {
reject( { 'code': 500, 'message': 'ERR_DB' } ); reject( { 'code': 500, 'message': 'ERR_DB' } );

View File

@@ -18,7 +18,7 @@
<div id="docPage"> <div id="docPage">
<div id="doc-container"> <div id="doc-container">
<h1>Home</h1> <h1>Home</h1>
<p>The admin panel is where you can change basically everything about libreevent. <p>The admin panel is where you can change basically everything about libreevent. It can be reached by visiting your libreevent instance and at the end type '/admin'. Example: 'https://libreevent.janishutz.com/admin' (note that this is not a valid URL!)
</p> </p>
<p>Here's a list of the pages available when logged in as the root user. </p> <p>Here's a list of the pages available when logged in as the root user. </p>
<ul> <ul>

View File

@@ -61,7 +61,7 @@ https://www.digitalocean.com/go/affiliates</p>
<h3>ERR_ENCODING_NOT_SUPPORTED</h3> <h3>ERR_ENCODING_NOT_SUPPORTED</h3>
<p>If this error occurs, most likely, the Node.js build of your hosting provider is set to small-icu mode, meaning some localizations are missing, one of which is ascii, which is required by the pdf generator that libreevent uses. To resolve this, you will need to download a special package.json file and add two (more) environment variables:</p> <p>If this error occurs, most likely, the Node.js build of your hosting provider is set to small-icu mode, meaning some localizations are missing, one of which is ascii, which is required by the pdf generator that libreevent uses. To resolve this, you will need to download a special package.json file and add two (more) environment variables:</p>
<ul> <ul>
<li>For the package.json file, download it from <a href="https://libreevent.janishutz.com/downloads/full-icu/package.json">here</a> TODO: Add download!</li> <li>For the package.json file, download it from <a href="https://api.janishutz.com/download/libreevent?v=latest&amp;type=icu">here</a> </li>
<li>For the environment variables, add the following:</li> <li>For the environment variables, add the following:</li>
</ul> </ul>
<pre><code>NODE_ICU_DATA=./node_modules/full-icu <pre><code>NODE_ICU_DATA=./node_modules/full-icu

View File

@@ -67,7 +67,7 @@ The MySQL database you are using is not supported by libreevent or is incorrectl
### ERR_ENCODING_NOT_SUPPORTED ### ERR_ENCODING_NOT_SUPPORTED
If this error occurs, most likely, the Node.js build of your hosting provider is set to small-icu mode, meaning some localizations are missing, one of which is ascii, which is required by the pdf generator that libreevent uses. To resolve this, you will need to download a special package.json file and add two (more) environment variables: If this error occurs, most likely, the Node.js build of your hosting provider is set to small-icu mode, meaning some localizations are missing, one of which is ascii, which is required by the pdf generator that libreevent uses. To resolve this, you will need to download a special package.json file and add two (more) environment variables:
- For the package.json file, download it from [here](https://libreevent.janishutz.com/downloads/full-icu/package.json) TODO: Add download! - For the package.json file, download it from [here](https://api.janishutz.com/download/libreevent?v=latest&type=icu) <!-- TODO: Add download -->
- For the environment variables, add the following: - For the environment variables, add the following:
``` ```
NODE_ICU_DATA=./node_modules/full-icu NODE_ICU_DATA=./node_modules/full-icu