This commit is contained in:
@@ -20,6 +20,30 @@ Prioritize anything that stands in the way of beta testing
|
||||
|
||||
|
||||
|
||||
TODO: NEXT:
|
||||
|
||||
## LINUX NGINX INSTALL
|
||||
spin up a test server with DO so can do the whole thing from top to bottom
|
||||
or, do I just zap our test server and start from scratch again??
|
||||
I guess if I backup the nginx and any special config I can do that
|
||||
|
||||
for 5 bucks though far easire to just fire up a new one
|
||||
Do that first so can configure networking to point a subdomain to it for later nginx etc config (under HELLOAYANOVA.COM though, not ayanova.com!!)
|
||||
|
||||
## LINUX DOCKER INSTALL
|
||||
Make a new docker setup and use the droplet from above wiped again to test that out
|
||||
|
||||
## TEST BACKUP AND RESTORE USING GREEN TESTINSTALLER DROPLET FROM HERE WINDOWS BACKUP
|
||||
this is ultimate test, make sure have attachments etc, do full backup and full restore
|
||||
document it and build docs for it
|
||||
|
||||
## FINAL BETA INSTALL TASK
|
||||
TODO: FInally, last step before considering installs done is to do a fresh round of all installs following docs and make sure nothing missed or unclear or not working as expected
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
TODO IMMINENTLY
|
||||
- Log the startup folder for AyaNova and provide in all areas where you can view config because user may have trouble locating it on windows
|
||||
- Can't shut down the server in first boot from client due to no ops ui available, ops sb available even when not licensed possibly?
|
||||
@@ -182,87 +206,6 @@ Install types:
|
||||
A MAC build of bare files untested for people to try if they really want to go this route
|
||||
until we have a mac we can't really support this so we should say unsupported
|
||||
|
||||
TODO: FINAL LINUX SERVER
|
||||
do a fresh build then a fresh install from scratch and confirm all steps work correctly
|
||||
|
||||
|
||||
TODO: NEXT:
|
||||
firewall?? Test from outside my system or by address I guess to confirm if firewall needs to be opened or not
|
||||
|
||||
Test a clean server install and be *certain* NOT to start AyaNova in shell, do it all as a service so that we are certain all the reqs and permissions are good
|
||||
(i.e. running it manually and rendering triggers dl of chromium as root which is not a proper test)
|
||||
May need to create *all* the folders up front and grant permissions first before first run
|
||||
|
||||
## LINUX INSTALL
|
||||
|
||||
CHANGES
|
||||
|
||||
create the .local-chromium folder in advance
|
||||
don't set permissions and ownership until after AyaNova is unzipped
|
||||
set ownership on entire /var/ayanova folder to www-data
|
||||
set full permissions on .local-chromium including read/write/execute
|
||||
sudo chmod -R g+rwx /var/ayanova/.local-chromium
|
||||
|
||||
|
||||
|
||||
|
||||
Server service definition file
|
||||
sudo nano /etc/systemd/system/ayanova.service
|
||||
|
||||
|
||||
-----
|
||||
[Unit]
|
||||
Description=AyaNova server
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/var/ayanova
|
||||
ExecStart=/usr/bin/dotnet /var/ayanova/AyaNova.dll
|
||||
Restart=always
|
||||
# Restart service after 10 seconds if the dotnet service crashes:
|
||||
RestartSec=10
|
||||
KillSignal=SIGINT
|
||||
SyslogIdentifier=ayanova-server
|
||||
User=www-data
|
||||
Environment=ASPNETCORE_ENVIRONMENT=Production
|
||||
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
-----
|
||||
|
||||
sudo systemctl enable ayanova.service
|
||||
sudo systemctl start ayanova.service
|
||||
sudo systemctl status ayanova.service
|
||||
|
||||
|
||||
change ownership of entire folder
|
||||
sudo chown :www-data /var/ayanova/AyaNova.dll
|
||||
|
||||
set execute permission for both group (www-data) and owner (root) (this didn't seem to be needed mysteriously)
|
||||
sudo chmod ug+rwx ./AyaNova.dll
|
||||
|
||||
.local-chromium folder needs to be pre-made and set full rights
|
||||
sudo chmod -R g+rwx /var/ayanova/.local-chromium
|
||||
|
||||
|
||||
|
||||
|
||||
install the chromium reqs:
|
||||
|
||||
sudo apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
|
||||
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
|
||||
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
|
||||
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libgbm1 \
|
||||
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
|
||||
|
||||
If this works, do it *before* run ayanova and auto dl chromium should be tested and put in that order
|
||||
|
||||
|
||||
Rights issues, running as www-data user/group
|
||||
Needs writeable to data folder so change ownership from root to www-data:
|
||||
sudo chown -vR :www-data /var/ayanova/data
|
||||
Add read write rights to all folders in /var/ayanova/data to group owners
|
||||
sudo chmod -R g+rw /var/ayanova/data
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user