mirror of https://github.com/flarum/flarum
				
				
				
			
							parent
							
								
									54d9228ab8
								
							
						
					
					
						commit
						655aa9cea9
					
				
							
								
								
									
										12
									
								
								flarum
								
								
								
								
							
							
						
						
									
										12
									
								
								flarum
								
								
								
								
							|  | @ -13,15 +13,11 @@ define('FLARUM_START', microtime(true)); | |||
| 
 | ||||
| require 'vendor/autoload.php'; | ||||
| 
 | ||||
| $site = Flarum\Foundation\Site::fromPaths([ | ||||
|     'base' => __DIR__, | ||||
|     'public' => __DIR__.'/public', | ||||
| ]); | ||||
| 
 | ||||
| $app = $site->bootApp(); | ||||
| 
 | ||||
| $server = new Flarum\Console\Server( | ||||
|     $app->getConsoleCommands() | ||||
|     Flarum\Foundation\Site::fromPaths([ | ||||
|         'base' => __DIR__, | ||||
|         'public' => __DIR__.'/public', | ||||
|     ]) | ||||
| ); | ||||
| 
 | ||||
| $server->listen(); | ||||
|  |  | |||
|  | @ -11,15 +11,11 @@ | |||
| 
 | ||||
| require '../vendor/autoload.php'; | ||||
| 
 | ||||
| $site = Flarum\Foundation\Site::fromPaths([ | ||||
|     'base' => __DIR__.'/..', | ||||
|     'public' => __DIR__, | ||||
| ]); | ||||
| 
 | ||||
| $app = $site->bootApp(); | ||||
| 
 | ||||
| $server = new Flarum\Http\Server( | ||||
|     $app->getRequestHandler() | ||||
|     Flarum\Foundation\Site::fromPaths([ | ||||
|         'base' => __DIR__.'/..', | ||||
|         'public' => __DIR__, | ||||
|     ]) | ||||
| ); | ||||
| 
 | ||||
| $server->listen(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Franz Liedke
						Franz Liedke