Code Monkey home page Code Monkey logo

now-wordpress's Introduction

Serverless Docker (V2)

This deployment:

  • Respond with dynamic data by running code
  • Automatically scale to zero with no traffic
  • Boot from cold in under a second
  • Are built reproducibly from Dockerfile

Overview

Demo Language Description Size
php-wordpress PHP An example running WordPress backed by a SQLite database 45.3M

now-wordpress

Example deployment of WordPress backed by a SQLite database.

There is an example sqlite database in the data directory, with a single user (username: nowuser, password: demo_test_123) that can be used to create posts, etc.

Note that changes the sqlite database on a live deployment will only be temporary, as the changes will be lost once the deployment goes to sleep.

To make more permanent modifications to the sqlite database, you can start up this docker container locally, using a volume mount to the local data directory. For example:

docker build -t now-wordpress .
docker run --rm -v $PWD/data:/data -p 3000:3000 now-wordpress

After running this command, you can access the WordPress server by visiting http://localhost:3000 and visit the WP Admin page to write a blog post.

Once you're finished, the sqlite file in the local data directory will have been updated, and you can invoke now to create a new deployment with the changes embedded into the deployment image.

now-wordpress's People

Watchers

James Cloos avatar Will 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.