Evil Anya
Evil Anya
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
github bot is the problem. Rehosting after updating railway github cred for the railway account owner solves the issue
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
i guess i'll try forking the repo as the railway owner and rehost that repo first
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
how do I manage railway bot on repo that is not owned by me, but am the collaborator to that repo?
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
hmm, i dont know where to check it. It says Im the collaborator in github and Im allowed to edit files directly in the repo, so Im guessing i have both read and write access
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
eventhough as the railway owner, im the colalborator to the url of the repo
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
I had the exact same message. I tried approving but then it complains repo not found
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
does that mean I cant host any repo that allows public contribution?
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
I thought having access to the repo itself is already enough? Why would railway need anyone else contributing to the repo
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
but i was thinking I could hear something different here
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
the other ugly solution im thinking is to fork the repo to the railway github owner and have everyone work on there on
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
$20/mth just for one repo
23 replies
RRailway
Created by Evil Anya on 9/12/2024 in #✋|help
Repository not found. Ensure someone has access to the repo
187a5a9d-3902-45ea-ab25-003405c7240a
23 replies
RRailway
Created by RomanChernin on 8/2/2023 in #✋|help
How to run my django app and celery simultaneously?
can this method work with multiple workers? Suppose I have 4 celery workers, one way is to set 1 worker and concurrency=4. Another way is to literally run the line 4 times with 4 different queue name. For the 2nd case, does that mean I should run 4 separate service for each worker? What would the overhead in memory cost be with this method?
7 replies
RRailway
Created by Evil Anya on 1/31/2024 in #✋|help
How to setup celery worker in django+redis project?
I solved my problem. So I created a duplicate service, linking to the same github repo, same root path. In settings, custom start command, I added celery -A dj_project worker -l INFO -Q queue1 In entrypoint.sh used by dockerfile, I added a condition
#!/bin/bash

# Check if the first argument passed is "celery". Gotta do this method bc one worker is wrapped within DJ proj
if [ "$1" = "celery" ]; then
# Start Celery worker
echo "Starting Celery worker..."
shift # This removes the first argument ("celery") from the arguments list
exec celery -A dj_project "$@"
else
# migrating db changes
echo "migrating db changes..."
python manage.py migrate

# Collect static files
echo "Collecting static files..."
python manage.py collectstatic --noinput

# # Start Gunicorn server
PORT=${PORT:-8000} # default port (8000) if the PORT environment variable is not set.
echo "PORT is set to '$PORT'"
echo "Running on http://localhost:$PORT"
exec gunicorn dj_project.wsgi:application --bind 0.0.0.0:$PORT --log-level info # change to debug to view more logs
fi
#!/bin/bash

# Check if the first argument passed is "celery". Gotta do this method bc one worker is wrapped within DJ proj
if [ "$1" = "celery" ]; then
# Start Celery worker
echo "Starting Celery worker..."
shift # This removes the first argument ("celery") from the arguments list
exec celery -A dj_project "$@"
else
# migrating db changes
echo "migrating db changes..."
python manage.py migrate

# Collect static files
echo "Collecting static files..."
python manage.py collectstatic --noinput

# # Start Gunicorn server
PORT=${PORT:-8000} # default port (8000) if the PORT environment variable is not set.
echo "PORT is set to '$PORT'"
echo "Running on http://localhost:$PORT"
exec gunicorn dj_project.wsgi:application --bind 0.0.0.0:$PORT --log-level info # change to debug to view more logs
fi
5 replies
RRailway
Created by Evil Anya on 1/31/2024 in #✋|help
How to setup celery worker in django+redis project?
187a5a9d-3902-45ea-ab25-003405c7240a
5 replies