hello there everyone, so i have bought a digital ocean droplet for testing purposes and have installed rasa on it. i connect to it via my terminal through ssh. everything is fine. i can run rasa run -m models --enable-api --cors “*” with no issues. it successfully runs the chat (Chatroom.js) on the droplet ip address which i use on my local server for testing further with ui and all.
issue is, droplets are 24 hours active but i cant keep the terminal which i used to connect to it and ran “rasa run -m models…” for 24 hours. once terminal is terminated, rasa (socketio) stops on the droplet as well .
i researched a bit and found we can run rasa as service and even have the code with steps - First, you have to create a service file in /etc/systemd/system/
[Unit] Description=Rasa-Core After=multi-user.target [Service] Type=simple WorkingDirectory=<path-to-rasa-project-directory> ExecStart=<path-to-python-bin>/bin/python3 -m rasa run --cors '*' --model <path-to-rasa-project-directory>/models/ --endpoints <path-to-rasa-project-directory>/endpoints.yml --credentials <path-to-rasa-project-directory>/credentials.yml User=root Group=daemon
Then run: systemctl daemon-reload Start service: service rasa-core start Check Status: service rasa-core status
i tried it but got something like no working directory found, so i assume i am doing something wrong with the directory. please help me out.
by the way, my directory where is stored it is literally default, like cd “rasabot” opens the directory.