Skip to content

Instantly share code, notes, and snippets.

View Morgaroth's full-sized avatar

MatJ Morgaroth

  • Kraków, Poland
View GitHub Profile

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
//wyslanie kodu na studenta
scp ./checkers-server/target/checkers-server-1.0-SNAPSHOT.jar mjaje@student.agh.edu.pl:~/public_html/checkers-server-classes.jar
#!/bin/bash
if [ "$1" == "--help" ]
then
echo "args: jar policy codebase adres port hostname nick [start|join oponent] [auto]"
else
jar=$1
policy=`readlink -f $2`