Ator9 / UX-CMS

Framework: PHP, Ext JS, MySQL, MVC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation via GIT

Create local repository and add UX-CMS as remote repository:

git init && git remote add framework https://github.com/Ator9/UX-CMS.git && git pull framework master

Bitbucket with SSH Key

sudo -u web3 git init --bare
sudo -u web3 git remote add origin git@bitbucket.org:xxx/yyy.git
sudo chown -R xxx:yyy .

sudo -u web3 ssh-keygen
sudo -u web3 git --work-tree=/var/www/domain/web --git-dir=/var/www/domain/private pull origin master
sudo -u web3 git --work-tree=/var/www/domain/web --git-dir=/var/www/domain/private checkout -f

Bitbucket with HTTPS

Git "config" file example:

[credential "https://bitbucket.org"]
    helper = store --file /var/www/domain/web/includes/.git-credentials

.git-credentials example:

https://user:pass@bitbucket.org

Push online from local repository (SSH)

Create online repository and setup the hook:

git init --bare && touch hooks/post-receive && chmod +x hooks/post-receive
printf '#!/bin/sh'"\ngit --work-tree=/var/www --git-dir=$(pwd) checkout -f" >> hooks/post-receive
nano hooks/post-receive
Option A, Simple SSH and Push
git remote add online gituser@server.com:/var/project/barerepo
git push online master
Option B, SSH Key and Push

Client Setup. Create "gitkey" ssh key and set "config" file at ~/.ssh:

ssh-keygen
nano config
Host serverCom
  HostName server.com
  User gituser
  IdentityFile ~/.ssh/gitkey
git remote add online serverCom:/var/www/barerepo/private
git push online master

Server Setup. Create git user and set client public ssh key ("gitkey.pub"):

sudo adduser gituser
mkdir /home/gituser/.ssh
echo "client_public_ssh_key" >> /home/gituser/.ssh/authorized_keys

About

Framework: PHP, Ext JS, MySQL, MVC


Languages

Language:JavaScript 79.7%Language:CSS 11.0%Language:PHP 8.4%Language:SCSS 0.8%Language:HTML 0.1%Language:Shell 0.0%Language:Ruby 0.0%