Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.
/ adhokku-jimhttp Public archive

An example Jailfile that sets up the demo web app for jimhttp

License

Notifications You must be signed in to change notification settings

adhokku/adhokku-jimhttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Jailfile for deploying the example web app for the jimhttp microframework. The Jailfile consists of reusable functions that you can import in a POSIX shell script with IMPORT_ONLY=yes . Jailfile. It shows how to run an application as a daemon that is automatically restarted.

Requirements

The Adhokku Ansible role installed on the developer machine. (Follow the instructions in the main Adhokku repository to install it.) A FreeBSD host with Adhokku set up.

Deployment

1. Create a new project.

mkdir adhokku-jimhttp-hello
cd adhokku-jimhttp-hello
git init

2. Create the Ansible files needed to run Adhokku commands.

export ANSIBLE_ROLES_PATH="$HOME/.ansible/roles"
export ADHOKKU_PATH="$ANSIBLE_ROLES_PATH/adhokku.adhokku"
sh "$ADHOKKU_PATH/adhokku-tool" init

3. Add the required submodules.

mkdir vendor
cd vendor
git submodule add https://github.com/adhokku/adhokku-jimhttp
git submodule add https://github.com/dbohdan/jimhttp
cd ..
echo '. /app/vendor/adhokku-jimhttp/Jailfile' > Jailfile
git add .
git commit -m 'Initial commit'

4. Deploy the application.

ansible-playbook -i inventory playbooks/deploy.yml

About

An example Jailfile that sets up the demo web app for jimhttp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published