Command to let running Laravel 5.1

0

I have an installation of laravel 5.1 To start, I'm using:

  

php artisan serve --host = mydomain.com --port = 8001

I have already tried to include & (And commercial) at the end, with space, but after executing this command, it remains running on the ubuntu terminal, which is not feasible. (Demonstrative IMAGE)

I need to leave my laravel project running without the need to follow in the terminal with the artisan serve , I read about it, that is to execute the php command but in the background, without the screen of the requests appearing, saving in some type log.

Can anyone help me with the command?

    
asked by anonymous 30.12.2016 / 05:21

1 answer

1

According to the Laravel documentation:

  

Typically, you may use the web server such as Apache or Nginx to serve   your Laravel applications. If you are on PHP 5.4+ and would like to   use PHP's built-in development server, you may use the serve Artisan   command ... Here

This feature is intended for the development version. The version of the system that is actually in use, it is preferable that it is running on a WEB server, type apache, nginx among others. The text is not so clear about this restriction, it just gives the option to a development server running directly in PHP. However, it is much more likely that a web server will perform much better with user requests (because of years of optimization) than the script that comes with the framework.

If you still want to run the application without a "hidden terminal". You can try these settings (I do not recommend):

ignore_user_abort(1); 
set_time_limit(0);
    
30.12.2016 / 05:40