@fishawack/lab-env 4.6.0 → 4.7.0
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/CHANGELOG.md +7 -3
- package/cli.js +4 -0
- package/commands/create/services/aws/index.js +1 -1
- package/globals.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 4.7.0 (2022-12-20)
|
|
4
|
+
* [Feature] --debug flag that shows extra information about running commands
|
|
5
|
+
* [Feature] Added newly setup AWS accounts to the client prompts on `fw provision`
|
|
6
|
+
|
|
3
7
|
### 4.6.0 (2022-11-30)
|
|
4
|
-
* [
|
|
5
|
-
* [
|
|
6
|
-
* [
|
|
8
|
+
* [Bug] Drupal now uses httpd so that htaccess files are respected
|
|
9
|
+
* [Bug] No longer mount env file into drupal php env container as env variables
|
|
10
|
+
* [Bug] Drupal now has wordpress upload limits of 500M
|
|
7
11
|
|
|
8
12
|
### 4.5.0 (2022-11-21)
|
|
9
13
|
* [Feature] Preset choice on `fw diagnose` now gives commands suitable to option chosen
|
package/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ module.exports.iam = require("./iam.js");
|
|
|
6
6
|
|
|
7
7
|
module.exports.slug = (repo, client, branch) => s3Safe(`${branch}-${repo}-${client}`);
|
|
8
8
|
|
|
9
|
-
module.exports.clients = ['fishawack', 'abbvie', 'sanofigenzyme', 'gsk', 'janssen', 'astrazeneca', 'ptc', 'jazz', 'pfizer', 'heron', 'novartis', 'training', 'merck', 'acadia', 'travere', 'roche', 'utc', 'bayer', 'alcon', 'uhc', 'chiesi', '3m', 'sarepta', 'ipsen', 'novocure'];
|
|
9
|
+
module.exports.clients = ['fishawack', 'abbvie', 'sanofigenzyme', 'gsk', 'janssen', 'astrazeneca', 'ptc', 'jazz', 'pfizer', 'heron', 'novartis', 'training', 'merck', 'acadia', 'travere', 'roche', 'utc', 'bayer', 'alcon', 'uhc', 'chiesi', '3m', 'sarepta', 'ipsen', 'novocure', 'anthem'];
|
|
10
10
|
|
|
11
11
|
module.exports.static = async (name, account, tags = [], credentials = []) => {
|
|
12
12
|
let s3 = await module.exports.s3.createS3Bucket(name, account, tags);
|
package/globals.js
CHANGED
|
@@ -137,12 +137,16 @@ if(platform === 'laravel'){
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
try{
|
|
140
|
-
services = execSync(`${docker} ps --services --filter "status=running"
|
|
140
|
+
services = execSync(`${docker} ps --services --filter "status=running"`, {encoding: 'utf8', stdio: 'pipe'});
|
|
141
141
|
running = services.trim().length;
|
|
142
142
|
exec = `exec ${process.env.CI_BUILD_ID ? '-T' : ''}`;
|
|
143
143
|
method = running ? exec : 'run --rm --service-ports';
|
|
144
144
|
run = `${method} core bash -l`;
|
|
145
|
-
} catch(e){
|
|
145
|
+
} catch(e){
|
|
146
|
+
if(args.find(d => d === '--debug')){
|
|
147
|
+
console.log(utilities.colorize(e.stderr, 'error'));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
146
150
|
|
|
147
151
|
// Always allow commands that don't require a repository through
|
|
148
152
|
if(args[0] !== 'diag' && args[0] !== 'diagnose' && args[0] !== 'origin' && args[0] !== '--version' && args[0] !== '--help' && args[0] !== 'new' && args[0] !== 'key' && args[0] !== 'dekey'){
|
|
@@ -155,7 +159,7 @@ if(args[0] !== 'diag' && args[0] !== 'diagnose' && args[0] !== 'origin' && args[
|
|
|
155
159
|
console.log(`${utilities.colorize(`@fishawack/lab-env`, 'title')} diagnosis is ${utilities.colorize(`outdated`, 'warning')}.\n\nRun ${utilities.colorize(`fw diagnose`, 'success')} to reconfigure.`);
|
|
156
160
|
// Stop here if docker process not running
|
|
157
161
|
} else if(!services) {
|
|
158
|
-
console.log(`${utilities.colorize(`Docker`, 'info')} does not appear to be running
|
|
162
|
+
console.log(`${utilities.colorize(`Docker`, 'info')} does not appear to be running...\n\nRun ${utilities.colorize(`fw --debug`, 'success')} for more information`);
|
|
159
163
|
process.exit();
|
|
160
164
|
}
|
|
161
165
|
}
|