Install Statamic
Learn here how to install Statamic locally and prepare it to be deployed to fortrabbit.
# Get ready
Have a local development environment with PHP and a web server ready.
# Install Statamic locally
Recommended approach: Before you deploy anything to fortrabbit, get your Statamic project running on your local computer. Please see the official Statamic install guide for up-to-date instructions. It boils down to something like this:
# Install the Statamic CLI composer global require statamic/cli # Create a new Statamic project statamic new {project_folder_name}shell
It would also be good to already have your first admin user set up.
# Install Statamic on the server
Another option is to install Statamic directly on the environment like so:
- Login to an environment by SSH
- Run the above steps to install a Statamic project
- Move all files in
{project_folder_name}one level up again
We believe it's better to start with a local development environment first. A local first approach is easier for Git + rsync deployments too.
# Add your magic
Installing a plain Statamic will not do much. Now add your templates, design and content to make it shine.
# Setup GitHub
Optional: To enable git deployments later on, init git and add GitHub as remote repo - either as a public or private.