Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sircpl/web

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web

Project for my personal website

nginx

Find how a running instance of nginx is configured:

nginx -V

Reload the nginx configuration after a change:

nginx -s reload

Docker

Create a debian docker container to play around in locally:

docker login --username=<username>
docker pull debian:latest
docker create -t -i debian:latest bash # -t = allocate pseudo-TTY, -i = interactive
docker ps -a # List all containers
docker start -a -i <container_id> # -a = attach, -i = interactive
apt-get update # need to get packages first
apt-get install -y sudo
sudo apt-get install -y gnulib
apt-get upgrade -y
apt-get install -y procps # Apparently ps isn't installed by default?
apt-get install -y nginx
nginx
apt-get install -y curl
curl localhost

Build and Run Website

docker build . -t scpl.xyz
docker run -p 8080:80 <image_id>

Attach to Running Webserver

docker exec -i -t <container_id> /bin/bash

Dependencies

nginx - a web server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.