-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
599 additions
and
694 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,33 @@ | ||
async function preInit(inputObj) { | ||
console.log(`\n ______ ___ _______ __ _ _______ _______ _______ ___ _______ _______ | ||
| | | || _ || | | || || || _ || | | || | | ||
| _ | | || |_| || |_| || ___|| _ || |_| || | | _ || ___| | ||
| | | | | || || || | __ | | | || || | | | | || | __ | ||
| |_| | ___| || || _ || || || |_| || _ | | |___ | |_| || || | | ||
| || || _ || | | || |_| || || |_| || || || |_| | | ||
|______| |_______||__| |__||_| |__||_______||_______||_______||_______||_______||_______|`) | ||
console.log(` | ||
Serverless Devs Application Case | ||
Cloud services required: | ||
- FC : https://fc.console.aliyun.com/ | ||
Tips: | ||
- Serverless Devs Version >= v2.0.103 | ||
- FC Component: https://www.serverless-devs.com/fc/readme | ||
`) | ||
} | ||
|
||
async function postInit(inputObj) { | ||
console.log(`\n Welcome to the django-blog application | ||
This application requires to open these services: | ||
FC : https://fc.console.aliyun.com/ | ||
NAS: https://nas.console.aliyun.com/ | ||
The application can help you quickly deploy the django-blog project | ||
* Recommended Python version: python3.7; | ||
console.log(` | ||
* Before using, please check whether the actions command in Yaml file is available | ||
* Carefully reading the notes in s.yaml is helpful for the use of the tool | ||
* Recommended Python version: python3.7; | ||
* If the version is over 3.7, the following error may be prompted: | ||
Operation error: ImportError: cannot import name 'metadata' from 'importlib' | ||
You can refer to the documentation at this point: https://stackoverflow.com/questions/59216175/importerror-cannot-import-name-metadata-from-importlib | ||
* Default information for this project: | ||
* Django management background: /admin | ||
* Default user: django | ||
* Default password: djangoblog | ||
* Additional note: actions are declared in s.yaml: | ||
Execute before deployment: pip3 install -r requirements.txt -t . | ||
Execute after deployment: s nas upload ./db.sqlite3 /mnt/auto | ||
If you encounter problems such as npm command cannot be found, you can manually build the project appropriately, and cancel the content of actions as needed | ||
* After the project is initialized, you can directly enter the project directory and use s deploy to deploy the project | ||
\n`) | ||
* If need help in the use process, please apply to join the Dingtalk Group: 33947367 | ||
`) | ||
} | ||
|
||
module.exports = { | ||
postInit, | ||
preInit | ||
} | ||
} |
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,28 +1,26 @@ | ||
async function preInit(inputObj) { | ||
console.log(`\n _______ _______ ______ _______ ___ ___ _______ _______ | ||
| || || | | || | | | | || | | ||
|_ _|| _ || _ || _ || | | | | _____||_ _| | ||
| | | | | || | | || | | || | | | | |_____ | | | ||
| | | |_| || |_| || |_| || |___ | | |_____ | | | | ||
| | | || || || || | _____| | | | | ||
|___| |_______||______| |_______||_______||___| |_______| |___| `) | ||
console.log(` | ||
Serverless Devs Application Case | ||
Cloud services required: | ||
- FC : https://fc.console.aliyun.com/ | ||
Tips: | ||
- Serverless Devs Version >= v2.0.103 | ||
- FC Component: https://www.serverless-devs.com/fc/readme | ||
`) | ||
} | ||
|
||
async function postInit(inputObj) { | ||
console.log(`\n Welcome to the todolist-app application | ||
This application requires to open these services: | ||
FC : https://fc.console.aliyun.com/ | ||
This application can help you quickly deploy the todolist-app project. | ||
* Additional note: | ||
1. [actions] are declared in s.yaml, execute before deployment | ||
If you don't need to build the project every time, or you don't need to build before deployment, or you have built it manually, you can comment out this part | ||
2. The Serverless Devs version required by the current project is at least v2.0.103. You can view the current version through [s -v] and upgrade the version through [npm install -g @serverless-devs/s]. | ||
* After the project is initialized, you can directly enter the project directory and use s deploy to deploy the project | ||
\n`) | ||
console.log(` | ||
* Before using, please check whether the actions command in Yaml file is available | ||
* Carefully reading the notes in s.yaml is helpful for the use of the tool | ||
* If you want to use the container mode, please refer to s.container.yaml | ||
* If need help in the use process, please apply to join the Dingtalk Group: 33947367 | ||
`) | ||
} | ||
|
||
module.exports = { | ||
postInit, | ||
preInit | ||
} | ||
} |
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 +1,32 @@ | ||
web-framework/nodejs/nest | ||
example/django-blog | ||
example/todolist-app | ||
web-framework/java/springboot | ||
web-framework/nodejs/connect | ||
web-framework/nodejs/egg | ||
web-framework/nodejs/egg-app | ||
web-framework/nodejs/express | ||
web-framework/nodejs/express-app | ||
web-framework/nodejs/hapi | ||
web-framework/nodejs/koa | ||
web-framework/nodejs/koa-app | ||
web-framework/nodejs/nest | ||
web-framework/nodejs/next | ||
web-framework/nodejs/nuxt-spa | ||
web-framework/nodejs/nuxt-ssr | ||
web-framework/nodejs/thinkjs | ||
web-framework/php/discuz | ||
web-framework/php/ecshop | ||
web-framework/php/laravel | ||
web-framework/php/metinfo | ||
web-framework/php/thinkphp | ||
web-framework/php/typecho | ||
web-framework/php/whatsns | ||
web-framework/php/wordpress | ||
web-framework/php/zblog | ||
web-framework/python/bottle | ||
web-framework/python/django | ||
web-framework/python/fastapi | ||
web-framework/python/flask | ||
web-framework/python/pyramid | ||
web-framework/python/tornado | ||
web-framework/python/webpy |
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,28 +1,26 @@ | ||
async function preInit(inputObj) { | ||
console.log(`\n _________ .__ ___. __ | ||
/ _____/____________|__| ____ ____\\_ |__ ____ _____/ |_ | ||
\\_____ \\\\____ \\_ __ \\ |/ \\ / ___\\| __ \\ / _ \\ / _ \\ __\\ | ||
/ \\ |_> > | \\/ | | \\/ /_/ > \\_\\ ( <_> | <_> ) | | ||
/_______ / __/|__| |__|___| /\\___ /|___ /\\____/ \\____/|__| | ||
\\/|__| \\//_____/ \\/ | ||
`) | ||
console.log(` | ||
Serverless Devs Application Case | ||
Cloud services required: | ||
- FC : https://fc.console.aliyun.com/ | ||
Tips: | ||
- Serverless Devs Version >= v2.0.103 | ||
- FC Component: https://www.serverless-devs.com/fc/readme | ||
`) | ||
} | ||
|
||
async function postInit(inputObj) { | ||
console.log(`\n Welcome to the start-connect application | ||
This application requires to open these services: | ||
FC : https://fc.console.aliyun.com/ | ||
* Additional note: | ||
1. [actions] are declared in s.yaml, execute before deployment | ||
If you don't need to build the project every time, or you don't need to build before deployment, or you have built it manually, you can comment out this part | ||
2. The Serverless Devs version required by the current project is at least v2.0.103. You can view the current version through [s -v] and upgrade the version through [npm install -g @serverless-devs/s]. | ||
* After the project is initialized, you can directly enter the project directory and use s deploy to deploy the project | ||
\n`) | ||
console.log(` | ||
* Before using, please check whether the actions command in Yaml file is available | ||
* Carefully reading the notes in s.yaml is helpful for the use of the tool | ||
* Recommended Python version: python3.7; | ||
* If need help in the use process, please apply to join the Dingtalk Group: 33947367 | ||
`) | ||
} | ||
|
||
module.exports = { | ||
postInit, | ||
preInit | ||
} | ||
|
||
} |
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,28 +1,25 @@ | ||
async function preInit(inputObj) { | ||
console.log(`\n __ | ||
____ ____ ____ ____ ____ _____/ |_ | ||
_/ ___\\/ _ \\ / \\ / \\_/ __ \\_/ ___\\ __\\ | ||
\\ \\__( <_> ) | \\ | \\ ___/\\ \\___| | | ||
\\___ >____/|___| /___| /\\___ >\\___ >__| | ||
\\/ \\/ \\/ \\/ \\/ | ||
`) | ||
console.log(` | ||
Serverless Devs Application Case | ||
Cloud services required: | ||
- FC : https://fc.console.aliyun.com/ | ||
Tips: | ||
- Serverless Devs Version >= v2.0.103 | ||
- FC Component: https://www.serverless-devs.com/fc/readme | ||
`) | ||
} | ||
|
||
async function postInit(inputObj) { | ||
console.log(`\n Welcome to the start-connect application | ||
This application requires to open these services: | ||
FC : https://fc.console.aliyun.com/ | ||
* Additional note: | ||
1. [actions] are declared in s.yaml, execute before deployment | ||
If you don't need to build the project every time, or you don't need to build before deployment, or you have built it manually, you can comment out this part | ||
2. The Serverless Devs version required by the current project is at least v2.0.103. You can view the current version through [s -v] and upgrade the version through [npm install -g @serverless-devs/s]. | ||
* After the project is initialized, you can directly enter the project directory and use s deploy to deploy the project | ||
\n`) | ||
console.log(` | ||
* Before using, please check whether the actions command in Yaml file is available | ||
* Carefully reading the notes in s.yaml is helpful for the use of the tool | ||
* If need help in the use process, please apply to join the Dingtalk Group: 33947367 | ||
`) | ||
} | ||
|
||
module.exports = { | ||
postInit, | ||
preInit | ||
} | ||
|
||
} |
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,32 +1,25 @@ | ||
async function preInit(inputObj) { | ||
console.log(`\n _____ | ||
| ___| | ||
| |__ __ _ __ _ | ||
| __|/ _\` |/ _\` | | ||
| |__| (_| | (_| | | ||
\\____/\\__, |\\__, | | ||
__/ | __/ | | ||
|___/ |___/ | ||
`) | ||
console.log(` | ||
Serverless Devs Application Case | ||
Cloud services required: | ||
- FC : https://fc.console.aliyun.com/ | ||
Tips: | ||
- Serverless Devs Version >= v2.0.103 | ||
- FC Component: https://www.serverless-devs.com/fc/readme | ||
`) | ||
} | ||
|
||
async function postInit(inputObj) { | ||
console.log(`\n Welcome to the start-egg application | ||
This application requires to open these services: | ||
FC : https://fc.console.aliyun.com/ | ||
Egg.js development docs: https://eggjs.org/zh-cn/tutorials/index.html | ||
* Additional note: | ||
1. [actions] are declared in s.yaml, execute before deployment | ||
If you don't need to build the project every time, or you don't need to build before deployment, or you have built it manually, you can comment out this part | ||
2. The Serverless Devs version required by the current project is at least v2.0.103. You can view the current version through [s -v] and upgrade the version through [npm install -g @serverless-devs/s]. | ||
* After the project is initialized, you can directly enter the project directory and use s deploy to deploy the project | ||
\n`) | ||
console.log(` | ||
* Before using, please check whether the actions command in Yaml file is available | ||
* Carefully reading the notes in s.yaml is helpful for the use of the tool | ||
* If need help in the use process, please apply to join the Dingtalk Group: 33947367 | ||
`) | ||
} | ||
|
||
|
||
module.exports = { | ||
postInit, | ||
preInit | ||
} | ||
postInit() | ||
} |
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,30 +1,25 @@ | ||
async function preInit(inputObj) { | ||
console.log(`\n _____ | ||
| ___| | ||
| |__ __ _ __ _ | ||
| __|/ _\` |/ _\` | | ||
| |__| (_| | (_| | | ||
\\____/\\__, |\\__, | | ||
__/ | __/ | | ||
|___/ |___/ | ||
`) | ||
console.log(` | ||
Serverless Devs Application Case | ||
Cloud services required: | ||
- FC : https://fc.console.aliyun.com/ | ||
Tips: | ||
- Serverless Devs Version >= v2.0.103 | ||
- FC Component: https://www.serverless-devs.com/fc/readme | ||
`) | ||
} | ||
|
||
async function postInit(inputObj) { | ||
console.log(`\n Welcome to the start-egg application | ||
This application requires to open these services: | ||
FC : https://fc.console.aliyun.com/ | ||
Egg.js development docs: https://eggjs.org/zh-cn/tutorials/index.html | ||
* Additional note: | ||
1. [actions] are declared in s.yaml, execute before deployment | ||
If you don't need to build the project every time, or you don't need to build before deployment, or you have built it manually, you can comment out this part | ||
2. The Serverless Devs version required by the current project is at least v2.0.103. You can view the current version through [s -v] and upgrade the version through [npm install -g @serverless-devs/s]. | ||
* After the project is initialized, you can directly enter the project directory and use s deploy to deploy the project | ||
\n`) | ||
console.log(` | ||
* Before using, please check whether the actions command in Yaml file is available | ||
* Carefully reading the notes in s.yaml is helpful for the use of the tool | ||
* If need help in the use process, please apply to join the Dingtalk Group: 33947367 | ||
`) | ||
} | ||
|
||
module.exports = { | ||
postInit, | ||
preInit | ||
} | ||
} |
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
Oops, something went wrong.