Reputation: 130
I am trying to run gatsby on a different port, But the port had to come via .env file.
I tried to put env varibale in commandline
gatsby develop -p process.env.GATSBY_PORT
Upvotes: 3
Views: 378
Reputation: 736
You can try:
. ./.env && gatsby develop -p $GATSBY_PORT
This will export the variables from the .env file .
Upvotes: 4