#How to access project via SSH

10 messages · Page 1 of 1 (latest)

hard abyss
#

Hello,
Anytime I tried to run some commands throuh SSH in Railway CLI, I get error. Here is an exmaple:
`Traceback (most recent call last):
File "/app/manage.py", line 11, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/app/manage.py", line 22, in <module>
main()
File "/app/manage.py", line 13, in main
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?`

Is there any work around this?

remote drumBOT
#

Project ID: c5ca084e-448f-42fa-a39b-4a82c481ae55

hard abyss
#

c5ca084e-448f-42fa-a39b-4a82c481ae55

hard abyss
#

Any help here please?

fierce vapor
#

thats not a project ID, can you please provide a project ID?

hard abyss
#

c693458b-37ea-4e1c-a606-1cfe87a9a94e

fierce vapor
#

when first ssh'ing in you would need to run . /opt/venv/bin/activate to activate the venv, then you can run your python commands

hard abyss
#

Great....thanks

fierce vapor
#

worked?

fierce vapor
#

!s