File tree Expand file tree Collapse file tree 7 files changed +19
-19
lines changed Expand file tree Collapse file tree 7 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
1
# chef
2
- Chef solo configuration for techtalks .io
2
+ Chef solo configuration for tlks .io
3
3
Original file line number Diff line number Diff line change 5
5
package 'supervisor'
6
6
7
7
# --- Set host name ---
8
- hostname = 'vps129914.ovh.net '
8
+ hostname = 'tlks.io '
9
9
10
10
file '/etc/hostname' do
11
11
content "#{ hostname } \n "
15
15
content "127.0.0.1 localhost #{ hostname } \n "
16
16
end
17
17
18
- directory "/opt/techtalks .io" do
18
+ directory "/opt/tlks .io" do
19
19
owner 'root'
20
20
group 'root'
21
21
mode '0755'
Original file line number Diff line number Diff line change 2
2
user "root"
3
3
cwd "/tmp"
4
4
code <<-EOH
5
- wget http://nodejs.org/dist/v0.10.35/node-v0.10.35 -linux-x64.tar.gz
6
- cd /usr/local && tar --strip-components 1 -xzf /tmp/node-v0.10.35 -linux-x64.tar.gz
5
+ wget http://nodejs.org/dist/v0.10.35/node-v0.12.00 -linux-x64.tar.gz
6
+ cd /usr/local && tar --strip-components 1 -xzf /tmp/node-v0.12.00 -linux-x64.tar.gz
7
7
EOH
8
8
end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [program:techtalks-front]
2
+ directory=/opt/tlks.io/front/
3
+ command=sudo node ./index.js
4
+ autostart=true
5
+ autorestart=true
6
+ stderr_logfile=/var/log/tlks.io/front.err.log
7
+ stdout_logfile=/var/log/tlks.io/front.out.log
Original file line number Diff line number Diff line change 1
- git "/opt/techtalks .io/front" do
2
- repository "https://github.com/techtalksio /front.git"
1
+ git "/opt/tlks .io/front" do
2
+ repository "https://github.com/tlksio /front.git"
3
3
revision "develop"
4
4
action :sync
5
5
end
6
6
7
- cookbook_file '/etc/supervisor/conf.d/techtalks -front.conf' do
8
- name "techtalks -front.conf"
7
+ cookbook_file '/etc/supervisor/conf.d/tlks -front.conf' do
8
+ name "tlks -front.conf"
9
9
mode '0755'
10
10
owner 'root'
11
11
group 'root'
12
12
end
13
13
14
- directory "/var/log/techtalks " do
14
+ directory "/var/log/tlks.io " do
15
15
owner 'root'
16
16
group 'root'
17
17
mode '0755'
18
18
action :create
19
19
end
20
20
21
21
bash "front" do
22
- cwd "/opt/techtalks .io/front"
22
+ cwd "/opt/tlks .io/front"
23
23
code <<-EOH
24
24
npm install
25
25
EOH
Original file line number Diff line number Diff line change 2
2
3
3
# Usage: ./deploy.sh [host]
4
4
5
- host=" ${1:- raul@ vps129914.ovh.net } "
5
+ host=" ${1:- raul@ tlks.io } "
6
6
7
7
# The host key might change when we instantiate a new VM, so
8
8
# we remove (-R) the old host key from known_hosts
You can’t perform that action at this time.
0 commit comments