Directory structure
Reviewed
Markdown ↓📂
File system structure.
Learn the file structure of your fortrabbit app. Understand how the web root (htdocs), home, and data directories are organized when you connect via SSH or SFTP.
When you log in with SFTP or SSH to your environment, you can see the directory structure. This is what you'll find:
srv
data
www
home
www
The default web root (aka document root) directory is the main tree 'visible' from the web. You can change the routing root path to any folder below the htdocs directory. The git deployment syncs to the htdocs folder as well. htdocs is also your login folder — the starting point for SSH/SFTP. The whole path looks something like this:
/srv/data/www
home
Like your ~ on your local machine. Contains bash history, private SSH keys.
/srv/data/home