宋德武
大自然的搬运工!
展开
-
node.js koa微信支付全流程功能实现
const moment = require('moment');const { Pay, Code } = require('../../../libs/consts');const { isTester, isDev, isTest, toQueryString, md5 } = require('../../../libs/utils/tool');const { STATUS, TYPE, ITEMS } = Pay;const cfg = config.get('payment')co原创 2020-10-26 16:43:14 · 546 阅读 · 0 评论 -
vue+egg nginx配置
vue+egg nginx配置配置代理转发至后端配置代理转发至后端server { listen 80; root /www/web/server_toutoufc_com/public_html; server_name server.toutoufc.com; index index.html index.php index.htm; error_page 400 /errpage/400.html;原创 2020-07-12 19:27:56 · 714 阅读 · 0 评论 -
node.js 微信公众号jssdk接入 后端开发
const {Code} = require("../../../libs/consts");const _ = require("lodash");const crypto = require("crypto");const xml2js = require("xml2js");const getRawBody = require("raw-body");const request =...原创 2019-11-12 09:13:17 · 478 阅读 · 0 评论 -
启动node pm2
pm2 start ecosystem.config.js --env development启动koa backendmodule.exports = { /** * Application configuration section * http://pm2.keymetrics.io/docs/usage/application-declaration/ */ ...原创 2019-11-07 22:47:21 · 134 阅读 · 0 评论 -
使用pm2在同服务器配置开发、生产、测试等环境
export NODE_ENV=production只能适用于node xxx.js的前台运行set NODE_ENV=production貌似无效pm2 做法:创建pm2.config.js文件:(其中name显示为pm2 list中的应用名,script为启动文件相对当前文件位置)module.exports = { apps : [ { name: ...原创 2019-11-07 22:24:27 · 577 阅读 · 0 评论 -
nginx 代理node配置文件
nginx 代理到nuxtserver { listen 80; server_name bibixiao.toutoufc.com; location / { proxy_pass http://127.0.0.1:3000; }}原创 2019-11-07 22:23:39 · 424 阅读 · 0 评论 -
sequelize-auto自动生成model...
sequelize-auto -o “./models” -d jiuzhousns -h localhost -u root -p 3306 -x root -e mysql原创 2018-12-22 23:32:05 · 2320 阅读 · 0 评论