在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):luarocks/luarocks-site开源软件地址(OpenSource Url):https://github.com/luarocks/luarocks-site开源编程语言(OpenSource Language):MoonScript 68.9%开源软件介绍(OpenSource Introduction):LuaRocks.orgThe official module repository of the LuaRocks package manager for Lua. The entire site runs on OpenResty, an Nginx based platform with Lua support. The site itself is coded in MoonScript and uses Lapis as a web framework. Files are stored on Google Cloud Storage. PostgreSQL is used as a database. Tup is the build system. How To Run LocallyInstall the following dependencies:
Check out this repository. Install the dependencies listed in https://github.com/luarocks/luarocks-site/blob/master/BoxFile with LuaRocks. Run these commands to build. tup init
tup Create the schema: make init_schema Start the server: lapis server Now If you edit any MoonScript or SCSS files you should call Running testsThis site uses Busted for its tests: make test_db
busted The Setting up Google Cloud StorageIn production all files are stored on Google Cloud Storage. With no
configuration (default), files are stored on the file system using the storage
bucket mock provided by the To configure -- secret/storage_bucket.moon
import OAuth from require "cloud_storage.oauth"
import CloudStorage from require "cloud_storage.google"
o = OAuth "[email protected]", "PRIVATEKEY.pem"
CloudStorage(o, "PROJECT_ID")\bucket "BUCKET_NAME" Setting up emailIf you want to test sending emails you'll have to provide Mailgun
credentials. Create a file { -- secret/email.moon
key: "api:key-MY_KEY"
domain: "mydomain.mailgun.org"
sender: "MoonRocks <[email protected]>"
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论