WebApp at Ubuntu 18.04 LTS

  1. 8 weeks ago

    Markus R

    Dec 26 Pre-Release Testers, Xojo Pro Europe / Germany

    does a stand alone WebApp made with Xojo 2010R3 start as service unit at Ubuntu 18.04 LTS?

  2. Oliver O

    Dec 26 Pre-Release Testers, Xojo Pro https://udemy.seminar.pro

    Are you asking whether one can enable a webapp in systemd as a service and have it autostart at boot time?

    First check the steps to create a Standalone web app that can run as a daemon:

    https://docs.xojo.com/UserGuide:Run_Web_Apps_in_the_Background

    Then follow these instructions here:

    https://www.google.ch/amp/s/linoxide.com/linux-how-to/enable-disable-services-ubuntu-systemd-upstart/amp/

    However, I use a cron job to run a script which launches my web service in case it went down.

  3. Norman P

    Dec 26 Pre-Release Testers, Xojo Pro outside listening to the silen...

    @Markus R does a stand alone WebApp made with Xojo 2010R3 start as service unit at Ubuntu 18.04 LTS?

    2010r3 makes 32 bit linux apps
    As long as you have all the required 32 bit support libs it should start as a service

  4. Oliver O

    Dec 26 Pre-Release Testers, Xojo Pro https://udemy.seminar.pro

    2010! I should wear my glasses ... sigh

  5. Markus R

    Dec 26 Pre-Release Testers, Xojo Pro Europe / Germany

    i meant at practice, at docu everything works in theory.
    with cron job i had always trouble or it need first a user login or the app won't start as expected or with error.

    yes i like to start a web app after boot as absolutely reliable service.

    2020 i Consider to use "Strato" with a linux or windows vps.

  6. Norman P

    Dec 26 Pre-Release Testers, Xojo Pro outside listening to the silen...

    in theory IF you can find all required 32 bit libs for 18.04 it _should_ work

    but just finding the dependent libs may be a challenge

  7. Greg O

    Dec 26 Xojo Inc scout.galaxy.barn

    @Markus R i meant at practice, at docu everything works in theory.
    with cron job i had always trouble or it need first a user login or the app won't start as expected or with error.

    yes i like to start a web app after boot as absolutely reliable service.

    2020 i Consider to use "Strato" with a linux or windows vps.

    Keep in mind that a lot of improvements and bug fixes have happened since 2010r3. That was the first public release of the Xojo web framework.

  8. Markus R

    Dec 26 Pre-Release Testers, Xojo Pro Europe / Germany

    ups i meant 2019r3, sorry

  9. Norman P

    Dec 26 Pre-Release Testers, Xojo Pro outside listening to the silen...
    Edited 8 weeks ago

    if youre building 32 bit you'll need some 32 bit support libs
    they may be hard to find

    for 64 bit it _should_ work
    any dependencies you will have an easier time getting libs

    see http://docs.xojo.com/Resources:System_Requirements under Web Apps > Web Server Requirements and Linux Notes

  10. Oliver O

    Dec 26 Pre-Release Testers, Xojo Pro https://udemy.seminar.pro

    I have webapps on linux boxes (ubuntu 14.04 and 18.04) since there are xojo webapps. I use cron jobs with shell scripts to start them and keep them alive. Absolutely reliable.

    So the script checks if "MyWebApp" is alive and if not it will launch the app. And the cron-job is running this script every other minute. So when I restart the linux box or when the webapp crashes, after two minutes it goes live again.

    I use to copy the webapp to a folder within /opt and then create a shell script like this ("startwebapp.sh", make it executable):

    #!/bin/bash
    
    if [[ ! `pidof -s MyWebApp` ]]; then
    sudo /opt/webapps/MyWebApp
    fi

    I use webmin to manage cronjobs, and there I add the startscript like this:

    -image-

  11. Oliver O

    Dec 26 Pre-Release Testers, Xojo Pro https://udemy.seminar.pro
    Edited 8 weeks ago

    NDR

    @Markus R i meant at practice, at docu everything works in theory.
    with cron job i had always trouble or it need first a user login or the app won't start as expected or with error.

    yes i like to start a web app after boot as absolutely reliable service.

    2020 i Consider to use "Strato" with a linux or windows vps.

    Looks interesting! Thanks for the hint.
    https://www.strato.de/server/linux-vserver/

    Could be a candidate for my next hosting. I am thinking of switching away from server4you, because they still do not support ubuntu 18.04 on VPS, plus they were bought by HostEurope which themselves were taken over by US provider GoDaddy. And since this happened, there is not much progress at Server4you, let alone my doubts about the security of data.

    I have to investigate further into Starto.de

  12. Markus R

    Dec 27 Pre-Release Testers, Xojo Pro Europe / Germany
    Edited 8 weeks ago

    @Oliver O I have to investigate further into Starto.de

    off-topic, it seems it have the best price-performance here in germany.
    for me was interesting, small fix price per month, the ssl costs, backup solution.
    alternate was alfahosting and ionos.

    i think windows hosting with asp .net / iis / ms sql will end up in high license costs.

or Sign Up to reply!