Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
anycodes committed Mar 29, 2022
1 parent 18d46d1 commit 0614ab1
Show file tree
Hide file tree
Showing 66 changed files with 599 additions and 694 deletions.
38 changes: 17 additions & 21 deletions example/django-blog/hook/index.js
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
}
}
2 changes: 1 addition & 1 deletion example/django-blog/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: django-blog
Provider:
- 阿里云
Version: 1.2.0
Version: 1.2.1
Description: 基于Django框架的博客系统
HomePage: https://github.com/devsapp/native-runtime-framework-example
Tags:
Expand Down
36 changes: 17 additions & 19 deletions example/todolist-app/hook/index.js
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
}
}
2 changes: 1 addition & 1 deletion example/todolist-app/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Application
Name: todolist-app
Version: 1.2.0
Version: 1.2.1
Provider:
- 阿里云
Description: 一款基于Node.JS的网页TodoList应用
Expand Down
11 changes: 0 additions & 11 deletions publish.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import subprocess
import time


def getContent(fileList):
for eveFile in fileList:
try:
with open(eveFile) as f:
return f.read()
except:
pass
return None


with open('update.list') as f:
publish_list = [eve_app.strip() for eve_app in f.readlines()]

Expand Down
33 changes: 32 additions & 1 deletion update.list
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
36 changes: 17 additions & 19 deletions web-framework/java/springboot/hook/index.js
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
}

}
2 changes: 1 addition & 1 deletion web-framework/java/springboot/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-springboot
Provider:
- 阿里云
Version: 1.2.1
Version: 1.2.2
Description: Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
35 changes: 16 additions & 19 deletions web-framework/nodejs/connect/hook/index.js
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
}

}
2 changes: 1 addition & 1 deletion web-framework/nodejs/connect/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Application
Name: start-connect
Version: 1.2.2
Version: 1.2.3
Provider:
- 阿里云
Description: Connect是一个Node.js框架,它使用被称为中间件的模块化组件,以可重用的方式实现web程序的逻辑
Expand Down
39 changes: 16 additions & 23 deletions web-framework/nodejs/egg-app/hook/index.js
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()
}
2 changes: 1 addition & 1 deletion web-framework/nodejs/egg-app/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Application
Name: egg-app
Version: 1.2.2
Version: 1.2.3
Provider:
- 阿里云
Description: 为企业级框架和应用而生(部署到Node.js运行时)
Expand Down
37 changes: 16 additions & 21 deletions web-framework/nodejs/egg/hook/index.js
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
}
}
2 changes: 1 addition & 1 deletion web-framework/nodejs/egg/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-egg
Provider:
- 阿里云
Version: 1.2.1
Version: 1.2.2
Description: 为企业级框架和应用而生(部署到Custom运行时)
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
Loading

0 comments on commit 0614ab1

Please sign in to comment.