I
I
Islam Ibakaev2021-02-02 16:25:12
Layout
Islam Ibakaev, 2021-02-02 16:25:12

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
  })
}

Can you please tell me how to raise the project to localhost/myprojectname:3000 ?

UPDATED:
os - linux mint tessa

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2021-02-02
@firedragon

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.

A
Alexander, 2021-02-02
@StupidQuestion

and push the myprojectname folder into the localhost folder below?
Well, for example, as on OpenServer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question