Skip to content

Instantly share code, notes, and snippets.

View torniker's full-sized avatar
🐒
monkeying

Tornike Razmadze torniker

🐒
monkeying
View GitHub Profile
@torniker
torniker / build.sh
Last active February 16, 2016 19:41
script for retrieving and building laravel project from github
#!/bin/bash
export DATE=$(date +%Y-%m-%d-%H-%M)
export CURDIR=$(readlink -f /home/user/current)
cd /home/user/deploy/files && wget -O projectmaster.zip -q https://github.com/username/repository/archive/master.zip
# Second, unzip it, if the zip file exists
if [ -f /home/user/deploy/files/projectmaster.zip ]; then
unzip -q /home/user/deploy/files/projectmaster.zip

Keybase proof

I hereby claim:

  • I am torniker on github.
  • I am torniker (https://keybase.io/torniker) on keybase.
  • I have a public key ASBiauVMD38_Dea9T0D8SrO4IwARoEa04KbUi37RGUvpzQo

To claim this, I am signing this object:

func Start(name string, handler http.Handler, port string) {
if port == "" {
panic("port not provided")
}
srv := http.Server{
Addr: ":" + port,
Handler: handler,
}
log.Printf("Listening on :%s", port)
go func() {