Add missing workers for jobs, post install message for setup, and pull in emujs/ruffle from docker release
This commit is contained in:
@@ -20,5 +20,5 @@
|
|||||||
"website":"https://romm.app/",
|
"website":"https://romm.app/",
|
||||||
"icon":"file://logo.png",
|
"icon":"file://logo.png",
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"postInstallMessage":"Before setting up the first admin user, please check /app/data/env.sh for some API keys for metadata sources and fill in any you want to use. Put any ROMs in the /app/data/library/roms folder. Please see https://docs.romm.app/latest/Getting-Started/Folder-Structure/ for details on folder structure."
|
"postInstallMessage":"Before setting up the first admin user, please check /app/data/env.sh for some API keys for metadata sources and fill in any you want to use. Put any ROMs in the /app/data/library/roms folder. Please see https://docs.romm.app/latest/Getting-Started/Folder-Structure/ for details on folder structure. RESTART AFTER ANY API KEY CHANGES!"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,8 @@ RUN rm -rf /tmp/RALibretro
|
|||||||
WORKDIR /app/code/frontend
|
WORKDIR /app/code/frontend
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp && ln -s /tmp/vite /app/code/frontend/node_modules/.vite && mkdir assets/romm && ln -s /app/data/assets /app/code/frontend/assets/romm/assets && ln -s /app/data/resources /app/code/frontend/assets/romm/resources
|
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp && ln -s /tmp/vite /app/code/frontend/node_modules/.vite && mkdir assets/romm && ln -s /app/data/assets /app/code/frontend/assets/romm/assets && ln -s /app/data/resources /app/code/frontend/assets/romm/resources
|
||||||
|
COPY --from=docker.io/rommapp/romm:$VERSION /var/www/html/assets/emulatorjs /app/code/frontend/assets/emulatorjs
|
||||||
|
COPY --from=docker.io/rommapp/romm:$VERSION /var/www/html/assets/ruffle /app/code/frontend/assets/ruffle
|
||||||
|
|
||||||
WORKDIR /app/code/
|
WORKDIR /app/code/
|
||||||
# Install uv for the non-root user
|
# Install uv for the non-root user
|
||||||
|
|||||||
1
start.sh
1
start.sh
@@ -28,6 +28,7 @@ export __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=${CLOUDRON_APP_DOMAIN}
|
|||||||
export XDG_CACHE_HOME=/tmp/cache
|
export XDG_CACHE_HOME=/tmp/cache
|
||||||
export REDIS_HOST=${CLOUDRON_REDIS_HOST}
|
export REDIS_HOST=${CLOUDRON_REDIS_HOST}
|
||||||
export REDIS_PORT=${CLOUDRON_REDIS_PORT}
|
export REDIS_PORT=${CLOUDRON_REDIS_PORT}
|
||||||
|
export ROMM_BASE_PATH=/app/data
|
||||||
|
|
||||||
TEMPLATE_FILE="/app/pkg/env.sh.template"
|
TEMPLATE_FILE="/app/pkg/env.sh.template"
|
||||||
ENV_FILE="/app/data/env.sh"
|
ENV_FILE="/app/data/env.sh"
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
priority=5
|
priority=5
|
||||||
directory=/app/code/backend
|
directory=/app/code/backend
|
||||||
environment=HOME=/app/code
|
environment=HOME=/app/code
|
||||||
environment=ROMM_BASE_PATH=/app/data
|
|
||||||
command=uv run python main.py
|
command=uv run python main.py
|
||||||
user=cloudron
|
user=cloudron
|
||||||
autostart=true
|
autostart=true
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[program:frontend]
|
[program:frontend]
|
||||||
priority=5
|
priority=50
|
||||||
directory=/app/code/frontend
|
directory=/app/code/frontend
|
||||||
environment=HOME=/app/code
|
environment=HOME=/app/code
|
||||||
command=npm run dev
|
command=npm run dev
|
||||||
|
|||||||
13
supervisor/rq.conf
Normal file
13
supervisor/rq.conf
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[program:rq]
|
||||||
|
priority=10
|
||||||
|
directory=/app/code/backend
|
||||||
|
environment=HOME=/app/code
|
||||||
|
environment=PYTHONPATH="/app/code/backend:${PYTHONPATH-}"
|
||||||
|
command=uv run rq worker --path /app/code/backend --pid /tmp/rq_worker.pid --url "redis://%(ENV_REDIS_HOST)s:%(ENV_REDIS_PORT)s/0" high default low
|
||||||
|
user=cloudron
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
12
supervisor/rqscheduler.conf
Normal file
12
supervisor/rqscheduler.conf
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[program:rqscheduler]
|
||||||
|
priority=10
|
||||||
|
directory=/app/code/backend
|
||||||
|
environment=HOME=/app/code
|
||||||
|
command=uv run rqscheduler --host %(ENV_REDIS_HOST)s --port %(ENV_REDIS_PORT)s --db 0 --path /app/code.backend --pid /tmp/rq_scheduler.pid
|
||||||
|
user=cloudron
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
12
supervisor/watcher.conf
Normal file
12
supervisor/watcher.conf
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[program:watcher]
|
||||||
|
priority=20
|
||||||
|
directory=/app/code/backend
|
||||||
|
environment=HOME=/app/code
|
||||||
|
command=uv run watchfiles --target-type command 'uv run python watcher.py' /app/data/library
|
||||||
|
user=cloudron
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
Reference in New Issue
Block a user