Git Product home page Git Product logo

tategaki-wordpress's Introduction

Tategaki Wordpress

Config

Change static/favicon.png to your favicon.

Change src/config.ts

Change the info in src/app.html to your TypeKit ID.

Docker

git clone https://github.com/crosstyan/tategaki-wordpress
cd tategaki-wordpress
docker build -t tategaki-wp -f ./docker/Dockerfile .

Or use docker-compose

services:
    db:
        image: mariadb
        restart: unless-stopped
        volumes: 
            - ./db/data:/var/lib/mysql
        ports:
            - "127.0.0.1:3306:3306"
        environment:
            MYSQL_ROOT_PASSWORD: YOUR_PASSWORD
    php8:
        image: php:fpm-buster
        restart: unless-stopped
        volumes: 
            - /var/www:/var/www # you wordpress application
        ports:
            - "127.0.0.1:9000:9000"
    nginx:
        image: macbre/nginx-http3:latest
        restart: unless-stopped
        volumes: 
            - ./conf:/etc/nginx
        ports:
            - "80:80"
            - "443:443"
            - "443:443/udp"
    tategaki:
        build: 
          context: ./tategaki-wordpress
          dockerfile: ./docker/Dockerfile
        volumes: 
            - ./tategaki-wordpress:/root/app
        restart: unless-stopped
server{
  server_name example.com;
  listen 80;
  listen 443 ssl http2;

  ssl_certificate /etc/nginx/ssl/example/fullchain.pem; # change this
  ssl_certificate_key /etc/nginx/ssl/example/privkey.pem; # change this
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
  ssl_prefer_server_ciphers on;
  ssl_session_cache shared:SSL:50m;
  ssl_session_timeout 1d;

  # forward to node server
  # no Websocket support (don't need)
  location / {
      proxy_set_header   X-Forwarded-For $remote_addr;
      proxy_set_header   Host $http_host;
      proxy_pass         http://tategaki:3000;
  }
}

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

tategaki-wordpress's People

Contributors

crosstyan 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.