tangled
alpha
login
or
join now
mackuba.eu
/
sdk.blue
6
fork
atom
A curated list of libraries & SDKs for the Bluesky API and AT Protocol
6
fork
atom
overview
issues
2
pulls
pipelines
added deploy config
mackuba.eu
1 year ago
56c0f964
53ea921c
+86
4 changed files
expand all
collapse all
unified
split
Capfile
Gemfile
Gemfile.lock
config
deploy.rb
+2
Capfile
···
1
1
+
load 'deploy'
2
2
+
load 'config/deploy'
+8
Gemfile
···
4
4
5
5
group :jekyll_plugins do
6
6
end
7
7
+
8
8
+
group :development do
9
9
+
gem 'capistrano', '~> 2.0'
10
10
+
11
11
+
# for net-ssh
12
12
+
gem 'ed25519', '>= 1.2', '< 2.0'
13
13
+
gem 'bcrypt_pbkdf', '>= 1.0', '< 2.0'
14
14
+
end
+25
Gemfile.lock
···
3
3
specs:
4
4
addressable (2.8.7)
5
5
public_suffix (>= 2.0.2, < 7.0)
6
6
+
bcrypt_pbkdf (1.1.1)
7
7
+
bcrypt_pbkdf (1.1.1-arm64-darwin)
8
8
+
bcrypt_pbkdf (1.1.1-x86_64-darwin)
6
9
bigdecimal (3.1.8)
10
10
+
capistrano (2.15.11)
11
11
+
highline
12
12
+
net-scp (>= 1.0.0)
13
13
+
net-sftp (>= 2.0.0)
14
14
+
net-ssh (>= 2.0.14)
15
15
+
net-ssh-gateway (>= 1.1.0)
7
16
colorator (1.1.0)
8
17
concurrent-ruby (1.3.4)
18
18
+
ed25519 (1.3.0)
9
19
em-websocket (0.5.3)
10
20
eventmachine (>= 0.12.9)
11
21
http_parser.rb (~> 0)
···
40
50
google-protobuf (4.28.3-x86_64-linux)
41
51
bigdecimal
42
52
rake (>= 13)
53
53
+
highline (3.1.1)
54
54
+
reline
43
55
http_parser.rb (0.8.0)
44
56
i18n (1.14.6)
45
57
concurrent-ruby (~> 1.0)
58
58
+
io-console (0.7.2)
46
59
jekyll (4.3.4)
47
60
addressable (~> 2.4)
48
61
colorator (~> 1.0)
···
72
85
rb-fsevent (~> 0.10, >= 0.10.3)
73
86
rb-inotify (~> 0.9, >= 0.9.10)
74
87
mercenary (0.4.0)
88
88
+
net-scp (4.0.0)
89
89
+
net-ssh (>= 2.6.5, < 8.0.0)
90
90
+
net-sftp (4.0.0)
91
91
+
net-ssh (>= 5.0.0, < 8.0.0)
92
92
+
net-ssh (7.3.0)
93
93
+
net-ssh-gateway (2.0.0)
94
94
+
net-ssh (>= 4.0.0)
75
95
pathutil (0.16.2)
76
96
forwardable-extended (~> 2.6)
77
97
public_suffix (6.0.1)
···
79
99
rb-fsevent (0.11.2)
80
100
rb-inotify (0.11.1)
81
101
ffi (~> 1.0)
102
102
+
reline (0.5.11)
103
103
+
io-console (~> 0.5)
82
104
rexml (3.3.9)
83
105
rouge (4.5.1)
84
106
safe_yaml (1.0.5)
···
128
150
x86_64-linux-musl
129
151
130
152
DEPENDENCIES
153
153
+
bcrypt_pbkdf (>= 1.0, < 2.0)
154
154
+
capistrano (~> 2.0)
155
155
+
ed25519 (>= 1.2, < 2.0)
131
156
jekyll (~> 4.3)
132
157
133
158
BUNDLED WITH
+51
config/deploy.rb
···
1
1
+
# TODO: migrate to capistrano3 bundler integration
2
2
+
require 'bundler/capistrano'
3
3
+
set :bundle_dir, ''
4
4
+
set :bundle_flags, '--quiet'
5
5
+
set :bundle_without, []
6
6
+
7
7
+
set :application, "sdk.blue"
8
8
+
set :repository, "https://github.com/mackuba/sdk.blue.git"
9
9
+
set :scm, :git
10
10
+
set :keep_releases, 10
11
11
+
set :use_sudo, false
12
12
+
set :deploy_to, "/var/www/sdk.blue"
13
13
+
set :deploy_via, :remote_cache
14
14
+
set :public_children, []
15
15
+
16
16
+
server "blue.mackuba.eu", :app, :web, :db, :primary => true
17
17
+
18
18
+
before 'bundle:install', 'deploy:set_bundler_options'
19
19
+
after 'deploy:update_code', 'deploy:link_shared'
20
20
+
21
21
+
after 'deploy', 'deploy:build', 'deploy:cleanup'
22
22
+
after 'deploy:cold', 'deploy:fetch_metadata', 'deploy:build', 'deploy:cleanup'
23
23
+
24
24
+
namespace :deploy do
25
25
+
task :restart, :roles => :web do
26
26
+
run "touch #{current_path}/tmp/restart.txt"
27
27
+
end
28
28
+
29
29
+
task :set_bundler_options do
30
30
+
run "cd #{release_path} && bundle config set --local deployment 'true'"
31
31
+
run "cd #{release_path} && bundle config set --local path '#{shared_path}/bundle'"
32
32
+
run "cd #{release_path} && bundle config set --local without 'development test'"
33
33
+
end
34
34
+
35
35
+
task :link_shared do
36
36
+
run "mkdir -p #{release_path}/config"
37
37
+
run "ln -s #{shared_path}/auth.yml #{release_path}/config/auth.yml"
38
38
+
run "ln -s #{shared_path}/github_info.yml #{release_path}/_data/github_info.yml"
39
39
+
end
40
40
+
41
41
+
task :build do
42
42
+
run "cd #{release_path} && RACK_ENV=production bundle exec jekyll build"
43
43
+
end
44
44
+
45
45
+
task :migrate do
46
46
+
end
47
47
+
48
48
+
task :fetch_metadata do
49
49
+
run "cd #{release_path} && RACK_ENV=production bundle exec rake update_metadata"
50
50
+
end
51
51
+
end