@lando/php 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/processinfo/41cf4733-5fd1-4901-8efe-1d8147fe6dfd.json +1 -0
- package/.nyc_output/processinfo/ad2f5569-33d5-49eb-a1cf-96c429e575e8.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +8 -0
- package/builders/php-nginx.js +1 -1
- package/builders/php.js +7 -5
- package/coverage/index.html +1 -1
- package/package.json +1 -1
- package/.nyc_output/processinfo/3f3dab62-d0cb-4485-a4eb-6821012b5917.json +0 -1
- package/.nyc_output/processinfo/bcd2e306-a8a2-474b-b7e0-35972746fd96.json +0 -1
- /package/.nyc_output/{3f3dab62-d0cb-4485-a4eb-6821012b5917.json → 41cf4733-5fd1-4901-8efe-1d8147fe6dfd.json} +0 -0
- /package/.nyc_output/{bcd2e306-a8a2-474b-b7e0-35972746fd96.json → ad2f5569-33d5-49eb-a1cf-96c429e575e8.json} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":2031,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1701231814306,"ppid":2020,"coverageFilename":"/home/runner/work/php/php/.nyc_output/41cf4733-5fd1-4901-8efe-1d8147fe6dfd.json","externalId":"","uuid":"41cf4733-5fd1-4901-8efe-1d8147fe6dfd","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":2020,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1701231814117,"ppid":2019,"coverageFilename":"/home/runner/work/php/php/.nyc_output/ad2f5569-33d5-49eb-a1cf-96c429e575e8.json","externalId":"","uuid":"ad2f5569-33d5-49eb-a1cf-96c429e575e8","files":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"41cf4733-5fd1-4901-8efe-1d8147fe6dfd":{"parent":null,"children":[]},"ad2f5569-33d5-49eb-a1cf-96c429e575e8":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## v0.10.2 - [November 28, 2023](https://github.com/lando/php/releases/tag/v0.10.2)
|
|
2
|
+
* Added option to override the image powering the service.
|
|
3
|
+
* Removed apparmor step from image building.
|
|
4
|
+
|
|
5
|
+
## v0.10.1 - [November 27, 2023](https://github.com/lando/php/releases/tag/v0.10.1)
|
|
6
|
+
* Removed relative references to dependencies.
|
|
7
|
+
* Added nginxServiceType option so other services can override the default `php-nginx` service with their own.
|
|
8
|
+
|
|
1
9
|
## v0.10.0 - [November 21, 2023](https://github.com/lando/php/releases/tag/v0.10.0)
|
|
2
10
|
* Removed MultiViews from Apache config. [#66](https://github.com/lando/php/issues/66)
|
|
3
11
|
* Isolated PHP to work as a standalone service. [#78](https://github.com/lando/php/pull/78)
|
package/builders/php-nginx.js
CHANGED
package/builders/php.js
CHANGED
|
@@ -21,7 +21,7 @@ const nginxConfig = options => ({
|
|
|
21
21
|
project: options.project,
|
|
22
22
|
root: options.root,
|
|
23
23
|
ssl: options.nginxSsl,
|
|
24
|
-
type:
|
|
24
|
+
type: options.nginxServiceType,
|
|
25
25
|
userConfRoot: options.userConfRoot,
|
|
26
26
|
webroot: options.webroot,
|
|
27
27
|
version: options.via.split(':')[1],
|
|
@@ -63,7 +63,7 @@ const parseCli = options => {
|
|
|
63
63
|
*/
|
|
64
64
|
const parseNginx = options => {
|
|
65
65
|
options.command = (process.platform !== 'win32') ? ['php-fpm'] : ['php-fpm -R'];
|
|
66
|
-
options.
|
|
66
|
+
options.phpServer = 'fpm';
|
|
67
67
|
options.remoteFiles.vhosts = '/opt/bitnami/nginx/conf/lando.conf';
|
|
68
68
|
options.defaultFiles.vhosts = (options.ssl) ? 'default-ssl.conf.tpl' : 'default.conf.tpl';
|
|
69
69
|
options.nginxSsl = options.ssl;
|
|
@@ -110,7 +110,7 @@ module.exports = {
|
|
|
110
110
|
confSrc: path.resolve(__dirname, '..', 'config'),
|
|
111
111
|
command: ['sh -c \'a2enmod rewrite && apache2-foreground\''],
|
|
112
112
|
composer_version: '2.2.18',
|
|
113
|
-
|
|
113
|
+
phpServer: 'apache',
|
|
114
114
|
defaultFiles: {
|
|
115
115
|
_php: 'php.ini',
|
|
116
116
|
vhosts: 'default.conf',
|
|
@@ -132,6 +132,7 @@ module.exports = {
|
|
|
132
132
|
via: 'apache',
|
|
133
133
|
volumes: ['/usr/local/bin'],
|
|
134
134
|
webroot: '.',
|
|
135
|
+
nginxServiceType: 'php-nginx',
|
|
135
136
|
},
|
|
136
137
|
parent: '_appserver',
|
|
137
138
|
builder: (parent, config) => class LandoPhp extends parent {
|
|
@@ -154,7 +155,8 @@ module.exports = {
|
|
|
154
155
|
|
|
155
156
|
// Build the php
|
|
156
157
|
const php = {
|
|
157
|
-
image:
|
|
158
|
+
image: _.get(options, 'image') ?
|
|
159
|
+
options.image : `devwithlando/php:${options.version}-${options.phpServer}-${options.suffix}`,
|
|
158
160
|
environment: _.merge({}, options.environment, {
|
|
159
161
|
PATH: options.path.join(':'),
|
|
160
162
|
LANDO_WEBROOT: `/app/${options.webroot}`,
|
|
@@ -192,7 +194,7 @@ module.exports = {
|
|
|
192
194
|
const nginxOpts = nginxConfig(options);
|
|
193
195
|
|
|
194
196
|
// Merge in any user specifified
|
|
195
|
-
const PhpNginx = factory.get(
|
|
197
|
+
const PhpNginx = factory.get(nginxOpts.type);
|
|
196
198
|
const data = new PhpNginx(nginxOpts.name, nginxOpts);
|
|
197
199
|
// If the user has overriden this service lets make sure we include that as well
|
|
198
200
|
const userOverrides = _.get(options, `_app.config.services.${nginxOpts.name}.overrides`, {});
|
package/coverage/index.html
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage generated by
|
|
88
88
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
89
|
-
at 2023-11-
|
|
89
|
+
at 2023-11-29T04:23:34.503Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":1974,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1700597653751,"ppid":1973,"coverageFilename":"/home/runner/work/php/php/.nyc_output/3f3dab62-d0cb-4485-a4eb-6821012b5917.json","externalId":"","uuid":"3f3dab62-d0cb-4485-a4eb-6821012b5917","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":1985,"argv":["/opt/hostedtoolcache/node/18.18.2/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1700597653949,"ppid":1974,"coverageFilename":"/home/runner/work/php/php/.nyc_output/bcd2e306-a8a2-474b-b7e0-35972746fd96.json","externalId":"","uuid":"bcd2e306-a8a2-474b-b7e0-35972746fd96","files":[]}
|
|
File without changes
|
|
File without changes
|