CMS Development

DLagos6
Membre

i can't see my cms-react local environment

Résolue

I need a URL local for watch my changes, i set a PORT but it didn't work,
how can i create a URL for watch my changes in local Envioronment with React?.

 

"start": "PORT=3000 webpack --watch --env.autoupload --mode production"

 i don't find to documentation for it.

0 Votes
2 Solutions acceptées
Jaycee_Lewis
Solution
Gestionnaire de communauté
Gestionnaire de communauté

i can't see my cms-react local environment

Résolue

Hi, @DLagos6 👋  Thanks for reaching out!

 

To confirm, our documentation for setting up your dev environment is here:

Let's see if any of our community members have any additional insight for you. Hey, @Oezcan @Jnix284 @Anton do you have any suggestions on how @DLagos6 can resolve their issue? 

 

Thank you! – Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

Voir la solution dans l'envoi d'origine

Oezcan
Solution
Contributeur de premier rang | Partenaire solutions Diamond
Contributeur de premier rang | Partenaire solutions Diamond

i can't see my cms-react local environment

Résolue

Hi @DLagos6 , 

 

I'll try to help you, but I'm not sure if this is the solution.

I think you will need express and need to use something like this:

 

const express = require("express");
const app = express();

 

const hostname = "localhost";
const port = 3000;

 

app.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});

 

Best regards,

Özcan

Oezcan Eser Signature

Voir la solution dans l'envoi d'origine

2 Réponses
Oezcan
Solution
Contributeur de premier rang | Partenaire solutions Diamond
Contributeur de premier rang | Partenaire solutions Diamond

i can't see my cms-react local environment

Résolue

Hi @DLagos6 , 

 

I'll try to help you, but I'm not sure if this is the solution.

I think you will need express and need to use something like this:

 

const express = require("express");
const app = express();

 

const hostname = "localhost";
const port = 3000;

 

app.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});

 

Best regards,

Özcan

Oezcan Eser Signature
Jaycee_Lewis
Solution
Gestionnaire de communauté
Gestionnaire de communauté

i can't see my cms-react local environment

Résolue

Hi, @DLagos6 👋  Thanks for reaching out!

 

To confirm, our documentation for setting up your dev environment is here:

Let's see if any of our community members have any additional insight for you. Hey, @Oezcan @Jnix284 @Anton do you have any suggestions on how @DLagos6 can resolve their issue? 

 

Thank you! – Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot