Skip to content

Nginx Unit Server with NodeJS 16 and Python 3.10 modules

Notifications You must be signed in to change notification settings

Negaihoshi/nginx-unit-nodejs16-python310

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx Unit Server with NodeJS 16 and Python 3.10 modules

This is just testing code for Nginx Unit so I can run a Svelte frontend with a FastAPI backend.

To Use:

  • Build image and Run

    make
    
  • Run NodeJS app build

    make build
    
  • Configure Unitd

    make config
    

    if there's an error, you can check the container logs:

    docker logs unit -f
    

    or exec into the container and look around:

    docker exec -ti -w /www unit /bin/bash
    su - unit
    
  • Restart Apps (as needed) The apps will need to be restarted if using a mount and the code is changed on disk.

    # nodejs
    make app_restart_node
    
    # fastapi
    make app_restart_fapi
    

    or both

    make app_restart
    

Some Reading:

About

Nginx Unit Server with NodeJS 16 and Python 3.10 modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 42.7%
  • Shell 27.2%
  • Makefile 14.9%
  • JavaScript 9.2%
  • HTML 3.4%
  • Svelte 1.4%
  • Python 1.2%