-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dial fully for `lando update` * Update to node 18 * Fix some script-generated issues. * Restructure dirs and get lampy stuff back into recipe. * Correct tests. * Correct test matrix. * Update custom install docs.
- Loading branch information
1 parent
91337dc
commit adeb7c6
Showing
31 changed files
with
9,807 additions
and
4,534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
name: lando-laravel-plugin | ||
services: | ||
node: | ||
type: node:14 | ||
type: node:18 | ||
build: | ||
- yarn install | ||
- npm install | ||
scanner: false | ||
ssl: false | ||
sslExpose: false | ||
tooling: | ||
node: | ||
service: node | ||
yarn: | ||
npm: | ||
service: node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const LandoMariadb = require('./../node_modules/@lando/mariadb/builders/mariadb.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'laravel-mariadb', | ||
parent: '_service', | ||
builder: (parent, config) => class LaravelMariadb extends LandoMariadb.builder(parent, LandoMariadb.config) { | ||
constructor(id, options = {}) { | ||
super(id, options, {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const LandoMysql = require('./../node_modules/@lando/mysql/builders/mysql.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'laravel-mysql', | ||
parent: '_service', | ||
builder: (parent, config) => class LaravelMysql extends LandoMysql.builder(parent, LandoMysql.config) { | ||
constructor(id, options = {}) { | ||
super(id, options, {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const PhpNginx = require('@lando/php/builders/php-nginx.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'laravel-nginx', | ||
parent: '_webserver', | ||
config: { | ||
version: '1.25', | ||
}, | ||
builder: (parent, config) => class LaravelNginx extends PhpNginx.builder(parent, PhpNginx.config) { | ||
constructor(id, options = {}) { | ||
super(id, _.merge({}, config, options), {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const landoPhpPath = path.join(__dirname, '../node_modules/@lando/php'); | ||
const LandoPhp = require(`${landoPhpPath}/builders/php.js`); | ||
|
||
const loadScripts = options => { | ||
const lando = _.get(options, '_app._lando'); | ||
// Move the script to the confDir and make executable. | ||
if (fs.existsSync(path.join(landoPhpPath, 'scripts'))) { | ||
const confDir = path.join(lando.config.userConfRoot, 'scripts'); | ||
const dest = lando.utils.moveConfig(path.join(landoPhpPath, 'scripts'), confDir); | ||
lando.utils.makeExecutable(fs.readdirSync(dest), dest); | ||
lando.log.debug('automoved scripts from %s to %s and set to mode 755', | ||
path.join(landoPhpPath, 'scripts'), confDir); | ||
} | ||
}; | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'laravel-php', | ||
parent: '_appserver', | ||
builder: (parent, config) => class LaravelPhp extends LandoPhp.builder(parent, LandoPhp.config) { | ||
constructor(id, options = {}, factory) { | ||
loadScripts(options); | ||
options.nginxServiceType = 'laravel-nginx'; | ||
super(id, options, factory); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const LandoPostgres = require('./../node_modules/@lando/postgres/builders/postgres.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'laravel-postgres', | ||
parent: '_service', | ||
builder: (parent, config) => class LaravelPostgres extends LandoPostgres.builder(parent, LandoPostgres.config) { | ||
constructor(id, options = {}) { | ||
super(id, options, {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const LandoRedis = require('@lando/redis/builders/redis.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'laravel-redis', | ||
parent: '_service', | ||
builder: (parent, config) => class LaravelRedis extends LandoRedis.builder(parent, LandoRedis.config) { | ||
constructor(id, options = {}) { | ||
super(id, options, {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
Oops, something went wrong.