I made a project and connected it through github but it is getting failed to deploy.
arushi825
FREEOP

10 months ago

I have add variables but still I failed to deploy my project here. All the keys I have add are correct I cross checked them

https://github.com/arushi825/Discord%5FChatbot

$10 Bounty

4 Replies

Railway
BOT

10 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


chandrika
EMPLOYEE

10 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open chandrika 10 months ago


clashing
FREE

10 months ago

arushi825, follow these steps to get this up and running:

1. Add a "requirements.txt" file in your code/GitHub repository

discord.py

cohere

python-dotenv

2. Create a service for the repo in your Railway dashboard.

Right-click on Railway canvas -> GitHub repo -> Either provide the URL of the repo/choose from the dropdown

  1. Once the service shows up in the UI, go to its SETTINGS -> Custom Start Command, and add python mail_cohere.py

  1. Go to the Variables tab, add the two variables & their values (as required by your code: COHERE_API_KEY & DISCORD_TOKEN).

Then only, click on DEPLOY. If the provided environment variables are correct, then the code must run smoothly. Do let me know if that helped

Note: Once it's deployed, go to Settings -> Public Networking -> Generate Domain. That will provide you with a link that you can use to call the server (if that link doesn't open in the browser, you can test it on POSTMAN, because INDIAN ISPs like Jio block the browser requests of railway domain). But, you can always use the link as a server call & it won't be restricted

Attachments


clashing

**arushi825**, follow these steps to get this up and running: 1\. Add a "requirements.txt" file in your code/GitHub repository `discord.py` `cohere` `python-dotenv` 2\. Create a service for the repo in your Railway dashboard. Right-click on Railway canvas -> GitHub repo -> Either provide the URL of the repo/choose from the dropdown 1. Once the service shows up in the UI, go to its SETTINGS -> Custom Start Command, and add **python mail\_**[**cohere.py**](http://cohere.py) ![](https://station-server.railway.com/attachments/att_01k1w9551gfk38wky1b8e9c024) 1. Go to the Variables tab, add the **two variables & their values** (as required by your code: COHERE\_API\_KEY & DISCORD\_TOKEN). Then only, click on **DEPLOY**. If the provided environment variables are correct, then the code must run smoothly. Do let me know if that helped Note: Once it's deployed, go to Settings -> Public Networking -> Generate Domain. That will provide you with a link that you can use to call the server (if that link doesn't open in the browser, you can test it on POSTMAN, because INDIAN ISPs like Jio block the browser requests of railway domain). But, you can always use the link as a server call & it won't be restricted

clashing
FREE

9 months ago

Did this help, arushi825


clashing

**arushi825**, follow these steps to get this up and running: 1\. Add a "requirements.txt" file in your code/GitHub repository `discord.py` `cohere` `python-dotenv` 2\. Create a service for the repo in your Railway dashboard. Right-click on Railway canvas -> GitHub repo -> Either provide the URL of the repo/choose from the dropdown 1. Once the service shows up in the UI, go to its SETTINGS -> Custom Start Command, and add **python mail\_**[**cohere.py**](http://cohere.py) ![](https://station-server.railway.com/attachments/att_01k1w9551gfk38wky1b8e9c024) 1. Go to the Variables tab, add the **two variables & their values** (as required by your code: COHERE\_API\_KEY & DISCORD\_TOKEN). Then only, click on **DEPLOY**. If the provided environment variables are correct, then the code must run smoothly. Do let me know if that helped Note: Once it's deployed, go to Settings -> Public Networking -> Generate Domain. That will provide you with a link that you can use to call the server (if that link doesn't open in the browser, you can test it on POSTMAN, because INDIAN ISPs like Jio block the browser requests of railway domain). But, you can always use the link as a server call & it won't be restricted

clashing
FREE

9 months ago

Any update, arushi825?

If yes, then do mark my initial reply as the solution by clicking on Accept solution button below that post


Welcome!

Sign in to your Railway account to join the conversation.

Loading...