Answer the question
In order to leave comments, you need to log in
How to raise a project locally on localhost/myprojectname:3000 instead of localhost:3000?
I use a popular starter for layout.
The gulp default command raises the project to localhost:3000 .
The browserSync settings are as follows:
function browsersync() {
browserSync.init({
server: {
baseDir: 'app/',
middleware: bssi({ baseDir: 'app/', ext: '.html' })
},
ghostMode: { clicks: false },
notify: false,
online: true,
open: true,
// tunnel: 'yousutename', // Attempt to use the URL https://yousutename.loca.lt
})
}
Answer the question
In order to leave comments, you need to log in
Yes, in general, no way. First comes the host, then the port, and then the folder name. A host without a port sits either at 80 or at 443, in fact, in the settings, you can only change the port and the path to the application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question