Unable to deploy express js project into vercel - javascript

I worked on expressjs project, Project working fine in localhost,Now i am trying to upload using vercel, i am not getting any error but i am getting following message
404: NOT_FOUND
How can i fix this ? Can we upload express js project ? and how to integrate database ? Thank you in advance.

Related

how to deploy a next app where i am calling api routes

Having troubles while deploying my nextjs app to vercel where Iam calling my API routes thats localhost but in when deploy its in vercel I don't know what domain name will be so it's giving error for not fetehing datas.
Thanks for your help.
I highly appreciate you

URIError: failed to decode param "/%PUBLIC_URL%/favicon.ico"

Please help fix I ran into this error after deploying my webpage to git-pages,
now after running my React app it compiles successfully but does not display anything in the browser when you refresh the page this error pops up on the console.
link to the React app
Please follow the steps given on this repo - Deploy React to GithubPages
Alternative - React Deployment pages also explains how you can deploy to github pages Create-react-app deploy to githubpages

mailtrap error { Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied " }

I deployed my app in heroku, it's a simple laravel vue.js blog I'm still learning
The problem is in the contact page, when I send mail from the localhost everything work perfectly
but when I try to send the email from the website "http://scifiblog.herokuapp.com/" it give me this error
{ Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied "}
I don't know where is the problem and i didn't find a solution
Here is my .env :
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=***********
MAIL_PASSWORD=***********
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=test#test.com
MAIL_FROM_NAME="${APP_NAME}"
Can you help me please to fix this bug?
Thank you !
I fixed it !
The problem was because I didn't add the config for mailtrap in heroku app,
So I just copied mailtrap config from .env file and pasted it in my heroku app sittings under -Config Vars-
And it works !

Problems uploading an application to HEROKU, Failed with async. H12

when trying to deploy my app in heroku, I get this error:
I'm trying to search the net but I can't find anything definitive. Just say that it works perfect for me at local. I use MAMP, the database is in myphpadmin and I think I imported it correctly in Heroku. The .env variables that I have are:
BD_NAME = agencydeviajes
BD_USER = root
BD_PASS = root
BD_HOST = 127.0.0.1
BD_PORT = 8889
HOST = localhost
My heroku variables:
And this is my repository: Git HUB Repository
I haven't been able to find a solution for more than a week and I'm a little desperate, I appreciate a lot of ideas. This is the error log.
I am new to Heroku and I am learning Java Script. Thank you very much to all
I don't think you can reference localhost on heroku. Try using postgres url instead, e.g: postgres://dbUserName:dbPassword#db.server:dbPortNumber/dbName.
its easier to manage. Heroku has a postgres service to. You could follow this link to learn more about the postgres addon on heroku

Parse.com To Do web app deployment issue

Apologies for basic question. I am very new in web development . I have download parse.com javascript web To Do App from https://parse.com/tutorials/todo-app-with-javascript . Now I want to deploy with parse.com. So that I can browse this app using http://mytestapp.parseapp.com. But when try to deploy using "parse deploy" command getting error as "Command must be run in a directory containing a Parse project."
Can you please help out me by step by step process.
Did you follow deployment rule of parse?
If your directory structure (from where you run command) is not as below you'll get the same error:
-config/
global.json
-cloud/
main.js
-public/
index.html
If the keys config/global.json do not matches to yours then also you'll error.

Categories