This will install Statamic to your /home/USERNAME/
directory and have the needed public facing files files in your /home/USERNAME/public_html/
folder.
If you need help setting up above document root, please visit https://docs.statamic.com/knowledge-base/running-above-webroot.
local
public_html
|-- assets
|-- index.php
|-- .htaccess
site
statamic
please
.gitignore
Please use the revised .gitignore file below and adjust if needed to make sure any files/folders that you would like ignored are listed. I ignored all the cPanel files/folder from the default install and the Statamic files/folders from the original .gitignore file, but your needs may vary.
$ ssh -p port [email protected] (or USERNAME@IP)
$ nano ~/.bashrc (Add line "umask 022" under # User specific aliases and functions)
Then to save and exit:
^O (WriteOut)
^X (Exit)
Make a Git repo:
$ cd
$ git init
$ git config --global user.email "[email protected]"
$ git config --global user.name "Your Name"
$ git config receive.denyCurrentBranch updateInstead
$ git init
$ git add --all
$ git commit -m "initial commit"
$ git remote add origin ssh://[email protected]/home/USERNAME/
$ git push origin master -u (pushes local repo to Server repo)
If you use a custom port for SSH then it should be "ssh://[email protected]:2222/home/USERNAME/" where 2222 is your custom port
On Local Terminal in your Project Directory Root:
$ git add --all
$ git commit -m "description of chnages made for commit"
$ git push
On Live Server Remote Terminal:
$ ssh -p port [email protected] (or USERNAME@IP)
$ git add --all
$ git commit -m "modifed files from live server"
On Local Terminal in your Project Directory Root:
$ git pull