Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
README.md
dist.ini

README.md

opm molly

opm package sample

cat dist.ini

name = opmmolly
abstract = opm molly example 
author = v1xingyue
license = mit 
repo_link = https://github.com/v1xingyue/opmmolly
is_original = yes

配置github:

# your github account name (either your github user name or github organization that you owns)
github_account=v1xingyue

# you can generate a github personal access token from the web UI: https://github.com/settings/tokens
# IMPORTANT! you are required to assign the scopes "user:email" and "read:org" to your github token.
# you should NOT assign any other scopes to your token due to security considerations.
github_token=

# the opm central server for uploading openresty packages.
upload_server=https://opm.openresty.org

# the opm server for downloading openresty packages.
download_server=https://opm.openresty.org

压缩, 上传:

opm build
opm upload

测试:

opm install v1xingyue/molly

cat hello.lua 
local molly = require 'molly'
ngx.say(molly.add(1000, 24))
You can’t perform that action at this time.