From 01c45a2f4c70a09cfb0e8677636ce64e35db08ac Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sat, 1 Nov 2014 14:51:02 +0000 Subject: Create app.yml --- app.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app.yml (limited to 'app.yml') diff --git a/app.yml b/app.yml new file mode 100644 index 000000000..1e3d891ad --- /dev/null +++ b/app.yml @@ -0,0 +1,10 @@ +name: MCServer +image: ubuntu-14-04-x64 +config: + #cloud-config + packages: + - curl + runcmd: + - mkdir /minecraft + - cd /minecraft && curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh + - nohup /minecraft/MCServer/MCServer & -- cgit v1.2.3 From b9f467571cb0c1d3e1d2fb3f20420d136dccc2eb Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sun, 2 Nov 2014 10:09:38 +0000 Subject: Added nohup. --- app.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'app.yml') diff --git a/app.yml b/app.yml index 1e3d891ad..d46f2a528 100644 --- a/app.yml +++ b/app.yml @@ -4,6 +4,7 @@ config: #cloud-config packages: - curl + - nohup runcmd: - mkdir /minecraft - cd /minecraft && curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh -- cgit v1.2.3 From cde5d51d1855a969621791f14279576d42797a27 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sun, 2 Nov 2014 10:17:09 +0000 Subject: Use screen instaead. --- app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app.yml') diff --git a/app.yml b/app.yml index d46f2a528..4a9dddb6d 100644 --- a/app.yml +++ b/app.yml @@ -4,8 +4,8 @@ config: #cloud-config packages: - curl - - nohup + - screen runcmd: - mkdir /minecraft - cd /minecraft && curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh - - nohup /minecraft/MCServer/MCServer & + - screen -S mcserver -d -m /minecraft/MCServer/MCServer -- cgit v1.2.3 From e5a2b6d9d608e4d1823ad31f996f0279317d0a63 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sun, 2 Nov 2014 10:27:39 +0000 Subject: Files found. --- app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.yml') diff --git a/app.yml b/app.yml index 4a9dddb6d..26039f1a0 100644 --- a/app.yml +++ b/app.yml @@ -8,4 +8,4 @@ config: runcmd: - mkdir /minecraft - cd /minecraft && curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh - - screen -S mcserver -d -m /minecraft/MCServer/MCServer + - screen -S mcserver -d -m 'cd /minecraft/MCServer && ./MCServer' -- cgit v1.2.3 From 42364cb81e6050873a968452f597a457acdd85d4 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sun, 2 Nov 2014 10:42:19 +0000 Subject: Fixed it yet again. --- app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.yml') diff --git a/app.yml b/app.yml index 26039f1a0..44edf0852 100644 --- a/app.yml +++ b/app.yml @@ -8,4 +8,4 @@ config: runcmd: - mkdir /minecraft - cd /minecraft && curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh - - screen -S mcserver -d -m 'cd /minecraft/MCServer && ./MCServer' + - cd /minecraft/MCServer && screen -S mcserver -d -m ./MCServer -- cgit v1.2.3