Human Design for the people
Requirements:
-
Copy of this repository.
-
Choose hostname. For now, that is
me.transithd.com. -
Go to Digital Ocean and ensure you have three DNS records. The last two will be the virtual hosts for the development server and a production-mode server on which you can stage your changes.
hostnameprod.hostnamedev.hostname
-
Ansible installed.
-
New Ubuntu VPS:
- Currently require Ubuntu Jammy, for Ansible playbook to work.
- Place hostname in
ansible/inventory.yml - Ensure your ssh configuration will allow passwordless ssh login to
root@<your-host>.
- Start on an Ansible controller that has root access to the server.
- Clone this repository.
- Run
make ansible - Connect via ssh to the server.
- Add a
.env.localfile containing:
- GITHUB_OAUTH_SECRET
- The database should be properly configured already via ansible.
- Create Docker images by running
make. - Start astroapi and production service with
docker-compose up -d - Install npm packages
npm install - Run dev server:
npm run dev -- --host