mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.71k stars 846 forks source link

How to deply express app with ejs files on netlify. #767

Open h-a-entertainment opened 1 month ago

h-a-entertainment commented 1 month ago

Movie-App/ ├── node_modules/ │ └── files related to modules ├── public/ │ ├── css/ │ │ └── theme_1.css │ ├── js/ │ │ ├── app.min.js │ │ └── search.js │ ├── images/ │ │ └── logo.png ├── views/ │ ├── cast.ejs │ ├── contact-us.ejs │ ├── country.ejs │ ├── filter.ejs │ ├── genre.ejs │ ├── index.ejs │ ├── movie.ejs │ ├── movies.ejs │ ├── production.ejs │ ├── search.ejs │ ├── series.ejs │ ├── terms.ejs │ ├── top-imdb.ejs │ ├── tv-series.ejs │ └── watch-movie.ejs │ └── watch-series.ejs ├── .env ├── app.js ├── package.json ├── package-lock.json ├── netlify.toml └── netlify/functions/ └── api.js This is my directory when i deploy my project on netlify on my main url error occurs "Cannot GET /" that i define in route to work with index.ejs but i can access my css and js file from main url "https://***entertainment.netlify.app/css/theme_1.css" how could i deploy my project using ejs files to show in main url on nrtlify