Need Help Deploying Code
smokeydev-py
FREEOP

6 months ago

Hello, I am currently on the free trial thing right now to deploy my discord AI bot, and i am not seeing where i can deploy my code anywhere.

I plan on purchasing a full package but the issue i was having with the last platform i used to host my bot, could not communicate with my AI that is running locally on my PC.

So what i have done already, is upload my bot files to Github desktop, and then uploaded to railway through my Github link.

I can see the project folder that was pulled from Github on railway, but i can't see any of the files on railway or view my code directly in the railway workspace.

Also is there not a console to deploy from? Even if i can figure out how to get my code to the server, how do i deploy it, or input execute command in a console based environment of some sort?

Any help would be appreciated!

$10 Bounty

4 Replies

Anonymous
HOBBY

6 months ago

You have to start your app with a command. There are several ways to do this. Open your github repo service, navigate to the settings page and find "Custom Start Command", type the command you typically use to run on your local pc (for e.g. python manage.py runserver). Just make sure to use a production-safe command if you're planning on going live with your project.

Attachments


gamer50082
FREE

6 months ago

depending on what coding language you can expose the project to the web and have an endpoint that receive commands. There must be necessary authentication in place though since its public. using POST method sending the command in the body of the response with a password.


thabanghutamo
FREE

6 months ago

"The best approach is to use GitHub and keep all your code files in a Git repository. Then, register on Railway using your GitHub account. Once logged in, create a new service, choose GitHub, and select your repository. Railway will automatically pull your code from the repo and deploy it. Any future updates you push to GitHub will also be auto-pulled and redeployed by Railway

Attachments


opmaster123
FREE

6 months ago

you don't view your code files from inside railway. you just link the github and it automatically builds and deploys whatever it detects on itself you don't do anything extra


Loading...