Code Monkey home page Code Monkey logo

Comments (4)

slead avatar slead commented on August 28, 2024 1

Thanks Andy. I'm out of my depth here so I'll park it for the meanwhile.

In case it helps anyone else, as a workaround I'm manually deploying the React app using npm build and FTPing it to a web server where I've installed the PHP version of the Esri resource proxy.

from resource-proxy.

andygup avatar andygup commented on August 28, 2024

@slead You used to be able to set the Create React App default port to 80. Maybe give that a try.

from resource-proxy.

slead avatar slead commented on August 28, 2024

Hi @andygup,

Thanks for the suggestion. I'm already running Apache on port 80, which (I believe) is necessary in order to run the PHP component fo the Esri resource proxy.

✔ Something is already running on port 80. Probably:
  /usr/sbin/httpd -D FOREGROUND (pid 332)
  in /

Would you like to run the app on another port instead?

So if I stop Apache on port 80 and instead run React there, how would I run the proxy?

Thanks,
Steve

from resource-proxy.

andygup avatar andygup commented on August 28, 2024

Hmmm, it's been a long time since I used PHP. In theory, you can start PHP in stand-alone mode, e.g. php -S localhost:3000 and then leave CRA on its default port 3000. I haven't tried this since PHP is disabled by default on the latest MacOS. Here's more info: https://www.php.net/manual/en/features.commandline.webserver.php.

from resource-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.