61761

How to run multiple Laravel projects at same time?

To run one laravel project we only need to type "php artisan serve". and it will be available on port 8000.

But sometimes we need to run multiple projects at the same time. How can we do this?

Answer1:

One cannot have more than one listener per TCP port at the same time. If you need more web server instances try with another port:

php artisan serve --port=8001

Answer2:

You can also run web server on multiple port in PHP application by the following command.

php -S localhost:8000 php -S localhost:8080

Answer3:

i advise you to use laravel homestead and vagrant, it's a virtual box that virtualise your development environment and will make your life easier. homestead

vagrant

Answer4:

I have an application that runs on port 8000 but I need to run multiple processes. I understand that to do this I need to run each process on different ports but I don't see why your code needs to be in different ports to be useful? Can you enlighten us?

Recommend

  • PDO connection to MySQL database refused
  • Cannot log in using SQL authentication ONLY from a remote server
  • How can I set the buffer size for the underneath Socket UDP?
  • How to resend request with android volley when not authorized
  • Installing SSL on AWS EC2 Bitnami Mean Stack
  • Removing event listeners on automatically created multiple elements
  • LNK1104: cannot open file 'kernel32.lib'
  • Invert string in Rust
  • Java making confirming exit
  • Less Conflicting Session Manager for Zope 2
  • Does Apportable support to build library binary (.a/.so)?
  • Clarification on min distance on LocationManager.requestLocationUpdates method, min Distance paramet
  • calculate gradient output for Theta update rule
  • Do I need to reset a Perl hash index?
  • Reading JSON from a file using C++ REST SDK (Casablanca)
  • Repeat a vertical line on every page in Report Builder / SSRS
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • Android screen density dpi vs ppi
  • C# - Serializing and deserializing static member
  • Bug in WPF DataGrid
  • Resize panoramic image to fixed size
  • VS2008 Enable C++ Exception with SEH
  • Volusion's generic SQL folder, functionality
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Sending data from AppleScript to FileMaker records
  • Upload files with Ajax and Jquery
  • Do I've to free mysql result after storing it?
  • Why winpcap requires both .lib and .dll to run?
  • Is there a mandatory requirement to switch app.yaml?
  • A cron job substitute?
  • How to include full .NET prerequisite for Wix Burn installer
  • json Serialization in asp
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • Is it possible to post an object from jquery to bottle.py?
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal