Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Packaging & Development
  3. Deepcode successfully installed in LAMP App

Deepcode successfully installed in LAMP App

Scheduled Pinned Locked Moved App Packaging & Development
3 Posts 2 Posters 47 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • robiR Offline
    robiR Offline
    robi
    wrote last edited by
    #1

    Caveat, not sure why it's not loading up..

    Rough install instructions:
    https://github.com/HKUDS/DeepCode#-development-installation-from-source
    Follow the source install
    then configure as instructed
    then launch using source https://github.com/HKUDS/DeepCode#️-using-source-code

    In terminal it should listen to 8501

    add launch commands to run.sh and chmod u+x (except the uv venv python.. one since we already have it.)

    change apache/app,conf to proxy for 8501 and return 200 for userAgent CloudronHealth

    restart app.

    Once everything starts, it should pull up in the browser at the subdomain it's installed on.

    Mine doesn't yet and logs only complain of the missing healthcheck. Not sure why I'm getting this message:
    This app is currently not responding. Please try refreshing the page in a few minutes.

    It's not even hitting apache.
    curl on the port works from terminal.

    maybe it's the apache .conf:

    ServerName %{HTTP_HOST}
    
    <VirtualHost *:80>
        DocumentRoot /app/data/DeepCode
    
        LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
        CustomLog "|/bin/cat" proxy
        ErrorLog "|/bin/cat"
    
        <Directory /app/data/DeepCode>
            Options +FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>
    
        ProxyPreserveHost On
        ProxyPass / http://127.0.0.1:8501/
        ProxyPassReverse / http://127.0.0.1:8501/
        ProxyRequests off
        RewriteEngine on
        RewriteCond %{HTTP_USER_AGENT} CloudronHealth
        RewriteRule ^ - [R=200]
        
        <Location "/">
            Require all granted
        </Location>
        
        # Do not remove this include. It's required for your app to see the Real IP
        Include "/app/code/apache/rpaf.conf"
        # This line can be commented out, if you do no require PHPMyAdmin Access
        #Include "/app/code/apache/phpmyadmin.conf"
    
    </VirtualHost>
    

    Ideas?

    Conscious tech

    1 Reply Last reply
    0
    • J Offline
      J Offline
      joseph
      Staff
      wrote last edited by
      #2

      Does curl http://127.0.0.1:8501/ return anything on the Web Terminal ? Just a place to start debugging if it's the python app or the apache config .

      robiR 1 Reply Last reply
      0
      • J joseph

        Does curl http://127.0.0.1:8501/ return anything on the Web Terminal ? Just a place to start debugging if it's the python app or the apache config .

        robiR Offline
        robiR Offline
        robi
        wrote last edited by robi
        #3

        @joseph Yes, I thought I mentioned that just before the apache app.conf. It does.

        Thanks for chiming in!

        Conscious tech

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search