在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:eduardoboucas/staticman开源软件地址:https://github.com/eduardoboucas/staticman开源编程语言:JavaScript 99.9%开源软件介绍:Staticman
IntroductionStaticman is a Node.js application that receives user-generated content and uploads it as data files to a GitHub and/or GitLab repository. In practice, this allows you to have dynamic content (e.g. blog post comments) as part of a fully static website, as long as your site automatically deploys on every push to GitHub and/or GitLab, as seen on GitHub Pages, GitLab Pages, Netlify and others. It consists of a small web service that handles the You can download and run the Staticman API on your own infrastructure. The easiest way to get a personal Staticman API instance up and running is to use the free tier of Heroku. If deploying to Heroku you can simply click the button below and enter your config variables directly into Heroku as environment variables. Requirements
Setting up the server on your own infrastructureNOTE: The below steps are not required if deploying to Heroku. To deploy to Heroku, click the above deploy button and enter your configuration variables in the Heroku Dashboard.
Each environment, determined by the Check this guide if you're using Docker. Setting up a repositoryStaticman runs as a bot using a GitHub and/or GitLab account, as opposed to accessing your account using the traditional OAuth flow. This means that you can give it access to just the repositories you're planning on using it on, instead of exposing all your repositories. To add Staticman to a repository, you need to add the bot as a collaborator with write access to the repository and ask the bot to accept the invite by firing a
Site configurationStaticman will look for a config file. For the deprecated For a list of available configuration parameters, please refer to the documentation page. DevelopmentWould you like to contribute to Staticman? That's great! Here's how:
Useful links
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论