mythix 2.5.7 → 2.6.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mythix",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Mythix is a NodeJS web-app framework",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"scripts": {
|
|
@@ -33,8 +33,9 @@
|
|
|
33
33
|
"express": "^4.18.1",
|
|
34
34
|
"express-busboy": "github:th317erd/express-busboy#0754a570d7979097b31e48655b80d3fcd628d4e4",
|
|
35
35
|
"form-data": "^4.0.0",
|
|
36
|
+
"luxon": "^3.0.4",
|
|
36
37
|
"micromatch": "^4.0.5",
|
|
37
|
-
"mythix-orm": "^1.
|
|
38
|
+
"mythix-orm": "^1.7.0",
|
|
38
39
|
"nife": "^1.12.1",
|
|
39
40
|
"prompts": "^2.4.2"
|
|
40
41
|
}
|
|
@@ -709,11 +709,14 @@ module.exports = defineCommand('deploy', ({ Parent }) => {
|
|
|
709
709
|
return await target.finalizeDeploy.call(this, target, deployConfig);
|
|
710
710
|
|
|
711
711
|
if (target.index === 0) {
|
|
712
|
-
let targetLocation = `"${decodeURIComponent(target.pathname)}/"`;
|
|
712
|
+
let targetLocation = `"${decodeURIComponent(target.pathname)}/current"`;
|
|
713
|
+
|
|
714
|
+
let serviceUser = target.serviceUser || target.uri.username;
|
|
715
|
+
let serviceGroup = target.serviceGroup || serviceUser;
|
|
713
716
|
|
|
714
717
|
await this.executeRemoteCommands(target, deployConfig, [
|
|
715
|
-
{ command: 'cd', args: [ targetLocation ]
|
|
716
|
-
{ command: '
|
|
718
|
+
{ sudo: false, command: 'cd', args: [ targetLocation ] },
|
|
719
|
+
{ sudo: false, command: 'sudo', args: [ '-u', serviceUser, '-g', serviceGroup, `NODE_ENV=${deployConfig.target} mythix-cli migrate` ] },
|
|
717
720
|
]);
|
|
718
721
|
}
|
|
719
722
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateTime } from 'luxon';
|
|
2
2
|
import { Model } from './model';
|
|
3
3
|
|
|
4
4
|
export declare class MigrationModel extends Model {
|
|
5
5
|
declare public id: string;
|
|
6
|
-
declare public createdAt:
|
|
7
|
-
declare public updatedAt:
|
|
6
|
+
declare public createdAt: DateTime | string;
|
|
7
|
+
declare public updatedAt: DateTime | string;
|
|
8
8
|
}
|