R
Railway13mo ago
Z3R0

help deploying my project

I'm having trouble deploying my project, like it's deployed but i cant use the website correctly.... can someone help me ? i can show my code and everything (share the idea of the project antd the things that i want to do)
28 Replies
Percy
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
but i cant use the website correctly
please be more specific, screenshots would help here
Z3R0
Z3R0OP13mo ago
My project is a "website" where you put a code and it makes a request to a API and returnes to the user a PDF file when i set the code, it does not returns to me the PDF file would you like to see the project ?
Brody
Brody13mo ago
sure
Z3R0
Z3R0OP13mo ago
I have the repo
Z3R0
Z3R0OP13mo ago
GitHub
GitHub - LastHasagi/CND-DSX: Fazer consultas CND para usuários e ge...
Fazer consultas CND para usuários e gerar uma API string para integração - GitHub - LastHasagi/CND-DSX: Fazer consultas CND para usuários e gerar uma API string para integração
Z3R0
Z3R0OP13mo ago
you can see the code and the full idea the web site is simple cause i want to create a api that is gonna call my code to call the request to the other api its lik this: user -> other site using my api -> my code -> cnd api -> get the pdf and returnes to the user only the pdf file
Brody
Brody13mo ago
in your site.html file you are fetching localhost, you should only need to specify a path instead of a full domain and path like you currently do
Z3R0
Z3R0OP13mo ago
so i need to set in site.html the 'https://dsx-consulta-cnd.up.railway.app' instead the localhost is it right ?
Brody
Brody13mo ago
you should only need to use the path portion
Z3R0
Z3R0OP13mo ago
i'm new doing this type of project
Brody
Brody13mo ago
no worries
Z3R0
Z3R0OP13mo ago
could you see if its right now ? I'm really sorry...
Brody
Brody13mo ago
looks fine, you do have a bearer token in plaintext in your repo, so that's not good please use environment variables for that type of thing, you can set them in the variables tab of your railway service https://docs.railway.app/develop/variables#defining-variables
Z3R0
Z3R0OP13mo ago
oh, okay ! i need to change this ! I usually use .env to set those keys ! I'm gonna change now !
Brody
Brody13mo ago
try to stay away from .env too, since that's still storing sensitive information in plaintext
Z3R0
Z3R0OP13mo ago
do you have any type for me to set the process of creating my api to send to the users ? oh, I would set a .gitignore, it still bad ?
Brody
Brody13mo ago
you do absolutely want the .env file in your gitignore
Z3R0
Z3R0OP13mo ago
Is there someway to hire you to work with me in this project ? You're the first person that really wanted to help me... I would like to work with you and I would like to pay you for this and for some lessons I've never had someone to help me or teach me, I've learned all by myself
Brody
Brody13mo ago
I'm not even a python dev lol
Z3R0
Z3R0OP13mo ago
there is a chance where we can work together ?
Brody
Brody13mo ago
but im not a python dev, and this is a python project
Z3R0
Z3R0OP13mo ago
i need someone to help me with this and other projects... do you know someone ?
Brody
Brody13mo ago
@alex send the buildergoop discord server
alex
alex13mo ago
discord.gg/builders
Brody
Brody13mo ago
is this even an applicable server to ask for development help Alex? or am I totally off the mark
Z3R0
Z3R0OP13mo ago
i'm working in a html and js project to.... if you have time to take a look and see if you want to work with me, i would be i would be very happy to show you
Brody
Brody13mo ago
you can dm me and ill have a look
Want results from more Discord servers?
Add your server