This repository contains instructions for setting up the Archetype server on your machine.
Following the instructions require a little bit of a technical background.
For all instructions, you will require a terminal window open
Xcode Command Line ToolsRequired only for mac- Open a terminal and run
xcode-select --install
- Open a terminal and run
Git: Install from https://git-scm.com/downloadsDocker: Install from https://docs.docker.com/engine/install/Makefile: Not included with windows! User is encouraged to install Makefile on windows independently.
-
Get a copy of the needed files from github:
>>> git clone git@github.com:archetype-pal/infrastructure.git # Navigate to the project directory >>> cd infrastructure
-
Adust the project configuration to suit your needs.
Create a new fileenv_fileand fill it with the required variables. A working example can be found here. -
Run the project in the background
>>> make up-background
-
Run the database migrations
>>> make migrate
-
Open the website in your browser by navigating to
http://localhost
This is optional for those who want to deploy their website securely using https on a custom domain.
assuming your domain is called: archetype.myserver.com,
start by adding an A record that points to your server before continuing.
To generate TLS certificates, run the following commands:
>>> make certbotAfter running the above command. You should now have the cert folder populated with
the needed files.
Open the file nginx.conf and uncomment the certificate files as explained there.
Then run the following command:
>>> docker compose restart nginxSince this setup process is very delicate, it's important to know how to check the logs.
run the following command
>>> docker compose logs -fto see a real-time view over the logs.