Skip to content

lukasoppermann/environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Environment

My development setup. This includes bash configs as well as a terminal theme and an atom package which includes a theme and some shortcuts.

Setup

move the .bash_profie file to the root directory

cp .bash_profile ~/.bash_profile

Knowledge about git

Setup automatic deployment from github

ssh/config

~/.ssh/config

Host github.com User oppermann.lukas@googlemail.com Port 443 Hostname ssh.github.com

bash_profile

~/.bash_profile

eval $(ssh-agent)

clone git repo

git clone --recursive git://github.com/mysociety/whatdotheyknow.git

recursive initialises submodules

If your submodule was added in a branch be sure to include it in your clone command... git clone -b <branch_name> --recursive

deploy key

to authorise the server create a deploy key

  1. cd ~/.ssh
  2. ssh-keygen -t rsa -C email@mail.com
  3. cat ~/.ssh/id_rsa.pub
  4. github.com/user/repo/admin/keys > add key > paste key

github.php

echo git pull && git submodule update --init --recursive 2>&1;

  1. github.com/user/repo/admin/
  2. Service Hooks
  3. add WebHook URLs link to github.php

Stop ssh access from asking for password

  1. cd ~/.ssh
  2. if id_rsa.pub does NOT exist: ssh-keygen -t rsa
  3. if ssh-copy-id is installed ssh-copy-id '-p 2222 -i id_rsa.pub user@host' (do not forget the '') else open file and copy key
  4. ...

git reset to origin master

git reset --hard origin/master

About

My dev environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages