Deepcode successfully installed in LAMP App
-
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-codeIn 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?
-
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 .