Giter VIP home page Giter VIP logo

beanstalk's Introduction

Template for Redbean Projects

This repo contains two options for managing your project: a shell script, and a Makefile.

To make your redbean launch a browser on start, uncomment LaunchBrowserOnStart() in srv/.init.lua.

M1 Mac users should use the default MODE instead of asan-, this can be set in the top of your Makefile/build.sh

build.sh

  • build.sh init: download Redbean, zip, and sqlite
  • build.sh pack: put contents of srv/ into a fresh redbean, overwriting previously existing bean.
  • build.sh run: pack and then execute custom command found at top of file

Stock redbeans are hidden with dots. Executables are excluded in the .gitignore. Since they are Actually Portable, you could disable this behavior and commit the executables directly, if you're ok with keeping them in the git store. Also remember that binaries have a certain risk profile of their own.

Makefile

You can also use make to do the above.

  • make will do make download + make add
  • make download will download all of the requirements.
  • make add zips the contents of /srv into your redbean.com.
  • make start or make start-daemon will start the webserver (in foreground and background, respectively)

See also: make stop-daemon, make restart-daemon, make log, make ls

Roadmap

  • Build.sh
    • INIT: build.sh init [-s for sqlite?]
      • Fetch Redbean, save as read-only stock build.
      • Also fetch zip & sqlite
      • make sqlite opt-in
      • Verify checksums for known versions/generate checksums for new ones
    • PACK (default with no arguments)
      • force copy stock redbean to writable file. Zip contents of srv/ into zip
      • user-specified actions: if one script named packer* exists and is executable, run it
      • if sqlite.com and default.sqlite exist, force copy default.sqlite to db.sqlite
    • RUN
      • pack and then execute command specified in variable

Notable contributions

beanstalk's People

Contributors

roytinker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.