Menu
Forge is a paid server management services, tailored to hosting Laravel apps on Server Providers like DigitalOcean, Linode, Vultr, Amazon, Hetzner and more.
If you have a Forge Account and a connected server bucket, you can easily set up an Umami installation.
Select your desired Server in Forge.
Go to Sites > New Site
To install the Repository, fork the https://github.com/umami-software/umami project to your GitHub account or install from the official repository.
umami-software/umami
Update the deployment script and add the following after the git pull origin $FORGE_SITE_BRANCH
command.
yarn install
yarn build
Remove these lines, since we don't have artisan or use php:
( flock -w 10 9 || exit 1
echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock
if [ -f artisan ]; then
$FORGE_PHP artisan migrate --force
fi
In Forge, go to your Server page, click Database and add a user to the just created database.
Create the database-connection string and add it to your .env
file:
DATABASE_URL=mysql://user:password@localhost:3306/dbname
Perform the initial project setup, via SSH:
yarn install
yarn update-db
yarn build
Go to your Umami-Site and click on SSL in the left menu and add an SSL-Certificate.
Click Edit files > Edit Nginx Configuration and add the following before the favicon.
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
This configuration will route the traffic to the node-server that Umami runs on.
yarn start
/home/forge/umami.yourdomain.tld
You should now be able to reach your Umami project.