sumor 1.1.1 → 1.1.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.
Files changed (3) hide show
  1. package/README.md +58 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -123,6 +123,64 @@ Specify scope which will be cleaned, example: @sumor-cloud
123
123
  sumor clean --scope @sumor-cloud
124
124
  ```
125
125
 
126
+
127
+ ### One-time Deployment
128
+ It will deploy the application to the cloud.
129
+ ```shell
130
+ scd deploy
131
+ ```
132
+
133
+ ### Continuous Deployment
134
+ It will deploy the application to the cloud, and then listen to the changes of the local files, and automatically deploy the application to the cloud when the files are changed.
135
+ ```shell
136
+ scd deploy --watch
137
+ ```
138
+
139
+ ### Specify Type
140
+ It specifies the configuration file type. If there has different type available, it will automatically convert to the desired target type.
141
+ ```shell
142
+ scd deploy --type=yaml
143
+ ```
144
+
145
+ ### Display Logs
146
+ It will display the logs of the deployment.
147
+ ```shell
148
+ scd logs
149
+ ```
150
+
151
+ ## Deploy Configuration
152
+
153
+ ### scope
154
+ It defines the scope of the deployment.
155
+
156
+ ##### source
157
+ * ___< source name >___
158
+ * url: git repository url
159
+ * username: git username
160
+ * password: git password
161
+ ##### server
162
+ * ___< server name >___
163
+ * host: external host
164
+ * iHost: internal host
165
+ * port: default 22
166
+ * username: server username
167
+ * password: server password
168
+
169
+ ##### env
170
+ * ___< environment name >___
171
+ * ___< app name >___
172
+ * domain: expose domain, like example.com
173
+ * entry: should be server name
174
+ ### scale
175
+ It defines the scale of the deployment. Include env, instance size and instance count.
176
+
177
+ * ___< environment name >___
178
+ * ___< app name >___
179
+ * ___< version >___
180
+ * live: if true, it will be available to the public
181
+ * instance
182
+ * ___< server name >___: instance count
183
+
126
184
  ## Contributing & Issues
127
185
 
128
186
  You can use this tool for free.
package/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var r=o();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}("undefined"!=typeof self?self:this,(()=>(()=>{"use strict";var e={n:o=>{var r=o&&o.__esModule?()=>o.default:()=>o;return e.d(r,{a:r}),r},d:(o,r)=>{for(var n in r)e.o(r,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:r[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{default:()=>f});const r=require("commander");var n=e.n(r);const t=require("fs-extra");var s=e.n(t);const a=require("@sumor-cloud/builder");var c=e.n(a);const i=__dirname,d=process.cwd(),f={cli:e=>{const o=s().readJson(i+"/package.json");console.log(`当前使用的轻呈云部署库位于${i}`),console.log(`当前使用的轻呈云工作目录位于${d}`),n().program.name("sumor").version(o.version||"0.0.0","-v, --version"),c().cli(n()),n().program.parse(process.argv)}};return o.default})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var r=o();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}("undefined"!=typeof self?self:this,(()=>(()=>{"use strict";var e={n:o=>{var r=o&&o.__esModule?()=>o.default:()=>o;return e.d(r,{a:r}),r},d:(o,r)=>{for(var n in r)e.o(r,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:r[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{default:()=>f});const r=require("commander");var n=e.n(r);const t=require("fs-extra");var s=e.n(t);const a=require("@sumor-cloud/builder");var c=e.n(a);const i=require("@sumor-cloud/deployer");var d=e.n(i);const l=__dirname,u=process.cwd(),f={cli:e=>{const o=s().readJson(l+"/package.json");console.log(`当前使用的轻呈云部署库位于${l}`),console.log(`当前使用的轻呈云工作目录位于${u}`),n().program.name("sumor").version(o.version||"0.0.0","-v, --version"),c().cli(n()),d().cli(n()),n().program.parse(process.argv)}};return o.default})()));
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"sumor","description":"Sumor Command Line Tool.","homepage":"https://www.sumor.com","license":"MIT","bin":{"sumor":"cli.js"},"dependencies":{"@sumor-cloud/builder":"^1.1.11","commander":"^9.4.0","fs-extra":"^11.1.1"},"version":"1.1.1"}
1
+ {"name":"sumor","description":"Sumor Command Line Tool.","homepage":"https://www.sumor.com","license":"MIT","bin":{"sumor":"cli.js"},"dependencies":{"@sumor-cloud/builder":"^1.1.11","@sumor-cloud/deployer":"^1.0.0","commander":"^9.4.0","fs-extra":"^11.1.1"},"version":"1.1.2"}