packeton
packeton copied to clipboard
Packeton is not respecting config.json (composer)
Hi there,
I've setup a Packeton instance in my local network. When I try to add a package from a server which is on my local network too I get an error:
I'm aware of the risks, but since this is a test-setup in my local network this shouldn't be a problem.
According to the manual secure-http
should be set to false
inside config.json
to enable http-connections.
https://github.com/vtsykun/packeton#ssh-key-access-and-composer-oauth-token says the .config.json
should be placed inside the root-directory of the app under .composer/config.json
This is what my config.json
looks like
{
"config": {
"secure-http": false
}
}
Unfortunately the error remains.
Can you tell me please how to debug this error further?
Hi, you need to place this file relative to the home directory of web-server, i.e ~/.composer/config.json, /var/www/.composer/config.json
, but not inside the root-directory of the application.
Hello @vtsykun, thanks for your reply.
I've tried both:
bash-4.4$ cat ~/.composer/config.json
{
"config": {
"secure-http": false
}
}
and
bash-4.4$ cat /httpdocs/web/xxxxxx/.composer/config.json
{
"config": {
"secure-http": false
}
}
$_SERVER['DOCUMENT_ROOT']
is /httpdocs/web/xxxxxx/web
Still the same problem :(
You need to use $_SERVER['HOME']
Please, can you check phpinfo
to see web home dir?