R
Railway12mo ago
mohd

hi i have error with my proj in your site can you help the delopy is donr but i cant open the site

https://sdk-site-production.up.railway.app/ can i contact with any one of the support so he can help me
25 Replies
Percy
Percy12mo ago
Project ID: 0aea055f-ae86-4a34-bd15-f169c0c2a1ac
mohd
mohdOP12mo ago
0aea055f-ae86-4a34-bd15-f169c0c2a1ac this is the id iam using django
mohd
mohdOP12mo ago
GitHub
GitHub - mohammedalsamki/SDk-Site
Contribute to mohammedalsamki/SDk-Site development by creating an account on GitHub.
Brody
Brody12mo ago
mohd
mohdOP12mo ago
how can i do it ? ? here it is Operations to perform: Apply all migrations: accounts, admin, app, auth, contenttypes, course, payments, quiz, result, sessions Running migrations: No migrations to apply. ? so ? no one will answer ?
Brody
Brody12mo ago
this is community support, please be patient please read this docs page https://docs.railway.app/guides/fixing-common-errors
mohd
mohdOP12mo ago
how can i add it i am using django
Adam
Adam12mo ago
Please read the docs page Brody listed
mohd
mohdOP12mo ago
i did pro but what port and host should i add to the variabales ?
Adam
Adam12mo ago
No description
mohd
mohdOP12mo ago
is it Like this Host = 0.0.0.0 Port = PORT ? with ` or without
Adam
Adam12mo ago
No. Please read the docs page
mohd
mohdOP12mo ago
but they didnt provide me with any port
Adam
Adam12mo ago
That's right,
No description
mohd
mohdOP12mo ago
[Region: us-west1] ========================= Using Detected Dockerfile ========================= context: 94ff7705955ba8eb2fe612d890ea2ac3 PORT variable must be integer between 0 and 65535 i got this error
Adam
Adam12mo ago
Do not set the port environment variable
mohd
mohdOP12mo ago
so just the host ?
Adam
Adam12mo ago
No, don't set either
mohd
mohdOP12mo ago
so what i do ?
Adam
Adam12mo ago
Run your app with gunicorn, as it says in the docs
mohd
mohdOP12mo ago
how can i run it is there a shell ?
Adam
Adam12mo ago
No, set your start command in Railway's settings to the gunicorn start command
mohd
mohdOP12mo ago
where i can find that in the setting ?
Adam
Adam12mo ago
in the service settings
mohd
mohdOP12mo ago
ok i have to edit this to my app name gunicorn main:app or leav it as it is ? i edit this to the start comand and it work "startCommand": "gunicorn SMS.wsgi:application", but the style didnt load i used python3 manage.py collectstatic and it the same the style didnt work any idea ? /usr/local/lib/python3.10/site-packages/whitenoise/base.py:115: UserWarning: No directory at: /app/app/staticfiles/ warnings.warn(f"No directory at: {root}") these are the static setting STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') 'whitenoise.middleware.WhiteNoiseMiddleware', # WhiteNoise after SecurityMiddleware STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' the style is working now i see this ** Forbidden (403) CSRF verification failed. Request aborted. More information is available with DEBUG=True.
Want results from more Discord servers?
Add your server