-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drupal support? #40
Comments
I'll try to create a dockerfile with Adapterman and Drupal, when I have free time. PD: recommendations for any Drupal demo site are welcome, now I use Umami demo, but looks like it's deprecated in Drupal site. |
I run php server.php start, nothing happened. |
I test it locally with Umami demo and Nginx proxy (for the static files) Grabacion_microsoft-edge-dev_20230814140426.mp4PD: Drupal 9.5.10 |
server.php <?php
global $autoloader;
$autoloader = require_once __DIR__ . '/vendor/autoload.php';
use Adapterman\Adapterman;
use Workerman\Worker;
Adapterman::init();
$http_worker = new Worker('http://0.0.0.0:8080');
$http_worker->count = (int) shell_exec('nproc') * 4;
$http_worker->name = 'AdapterMan';
$http_worker->onWorkerStart = function () {
//init();
require __DIR__.'/start.php';
};
$http_worker->onMessage = static function ($connection) {
$connection->send(run());
};
Worker::runAll(); start.php <?php
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
*/
use Drupal\Core\DrupalKernel;
use Symfony\Component\HttpFoundation\Request;
//$autoloader = require_once __DIR__ . '/vendor/autoload.php';
global $autoloader;
global $kernel;
$kernel = new DrupalKernel('prod', $autoloader);
function run(): string
{
global $kernel;
ob_start();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
return ob_get_clean();
} |
nginx conf server {
listen 80;
listen [::]:80;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /media/joan/DataSSD/git/drupal;
# Add index.php to the list if you are using PHP
#index index.php;
server_name drupal;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri @php;
}
# pass PHP scripts to FastCGI server
#
#location ~ \.php$ {
location @php {
# include snippets/fastcgi-php.conf;
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
location = /index.php {
return 301 /;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
} |
Yes, I know. I fixed 1 hour ago. 1506550 Try to use dev-master in composer. |
I don't have time to tests all the frameworks and applications. |
Drupal version
with the errors:
|
I need a Drupal 10 demo site to test it. PD: but the error you sent, looks like a |
https://www.drupal.org/docs/develop/using-composer/manage-dependencies |
How to use it on Drupal?
The text was updated successfully, but these errors were encountered: