Skip to content

Instantly share code, notes, and snippets.

View amboxer21's full-sized avatar

Anthony Guevara amboxer21

  • Brick, New Jersey 08723
View GitHub Profile
@Vicfred
Vicfred / nginx_uwsgi_flask_gentoo.md
Last active March 22, 2024 12:51
nginx + uwsgi + flask in gentoo and openrc

Instalacion

Instalamos los paquetes necesarios, primero nginx

# emerge -av www-servers/nginx

Para uwsgi que es un servidor hecho en C para aplicaciones en python (y otros) como no vamos a tener aplicaciones en Ruby o PHP vamos a quitarlos:

en /etc/portage/package.use/uwsgi agregamos:

#!/bin/bash
path="/usr/bin"
new_kernel_version=$1
current_kernel=`${path}/uname -r`
boot=`${path}/sudo ${path}/fdisk -l | ${path}/awk '/\/.*\*/{print $1}'`
cd /usr/src/linux-${new_kernel_version};
if [[ ! `${path}/mount | ${path}/egrep -io "^${boot} on /boot"` ]]; then