Hi,
I have developed an anvil app and want to run it on my own server with the anvil-app-server package. Testing this within the anvil development environment works ok using a server-link connection and the server running on my own server.
I then move the server code into a server module within the app (removing the server connect call and the wait_forever calls). I create a clone and install this in a python venv environment on my server. I have installed the anvil-app-server also installed in this python venv setup.
The server is Ubuntu server with Plesk. It has an apache2 httpd as a proxy.
The anvil-web-server with the anvil app starts ok.
The serve code does some initialisation, like setting up the logging and create the connection to a MariaDB. This all works as I log these action in a logfile of the servercode.
When I connect to the app using the url, the anvil-web-server logs this:
[INFO anvil.app-server.core] [SESSION] browser G336E2J3W6CGD72ZV4GJ4QN6FM6UOHPS {:addr 86.20.154.13, :location nil}
So the server received the connection.
However, from then on the browser then repost a server offline error.
I have also tried to us one of the anvil example apps and tried to start it on my sever, but this also gives the server offline error when connect tot the url from the browser.
I guess I am doing something wrong or have forgotten something, but I a not sure what. I followed the installation instructions on GitHub - anvil-works/anvil-runtime: The runtime engine for hosting Anvil web apps
Any suggestion or ideas would be appreciated.
A clone of my app is here:
https://anvil.works/build#clone:JDEBATRZQEOBLMJ4=RHSQEFJT5ILZW63T3S7M2LFE