简体   繁体   中英

How can I run a PHP project deployed in Heroku locally on Windows?

Operating system: Windows.

C:\Users\vigne>cd project
C:\Users\vigne\project>heroku local // Directory of cloned project from GitHub

I received this:

[WARN] No ENV file found
5:11:01 PM web.1 |  'vendor' is not recognized as an internal or external command,
5:11:01 PM web.1 |  operable program or batch file.
[DONE] Killing all processes with signal  null
5:11:01 PM web.1 Exited with exit code 1

Add this dyno in your Procfile:

local: php -S localhost:8080

And use this dyno to run Heroku on local.

Start the Heroku local server by this command:

heroku local local

Then open < http://localhost:8080/ >.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM