普通のRailsアプリをdockerで本番運用する知見 https://www.slideshare.net/mobile/zaruhiroyukisakuraba/railsdocker-78973487
普通のRailsアプリをdockerで本番運用する知見 https://www.slideshare.net/mobile/zaruhiroyukisakuraba/railsdocker-78973487
コード見てもこのインスタンスからの二重ブースト問題が直るかどうかわかりませんでした。ダメだなあ…(´・ω・`) -- Improve ActivityPub/OStatus compatibility (#4632) · tootsuite/mastodon@412ea87 · GitHub https://github.com/tootsuite/mastodon/commit/412ea873060da4dc73236fdd63a2931d27dbfa40
Add Mastodon as an application for web+mastodon links?
ってFirefoxが
\マスターに/ \しちゃいますたー/
Merged master at 412ea873060da4dc73236fdd63a2931d27dbfa40
Improve ActivityPub/OStatus compatibility (#4632)が入ってます。お騒がせにならないといいのだけどはてさて。
現状APの方々は9アカウント。
> SELECT COUNT(1), domain FROM accounts WHERE protocol=1 GROUP BY domain ORDER BY 1 DESC;
count | domain
-------+---------------------
3 | mastodon.chotto.moe
3 | taruntarun.net
2 | toot.yukimochi.jp
1 | mustardon.tokyo
そういえば最近データベースの大きさを測ってませんでしたね
$ heroku pg:info
=== DATABASE_URL, PG_HOBBY_BASIC_URL
Plan: Hobby-basic
Status: Available
Connections: 6/20
PG Version: 9.6.1
Created: 2017-04-20 18:31 UTC
Data Size: 209.0 MB
Tables: 31
Rows: 335449/10000000 (In compliance)
#MastodonDevKaigi 中にこのインスタンスのスループットが増えていたのはフォローしてる皆さんのトゥートが活発だったってことなんだろうな。楽しかったけどいつか物理で参加したいw' https://mastodon.zunda.ninja/media/Hqy5ODODsn9pbcsLE6o
This account is not set to public on notestock.
ActionView::Template::Error (undefined method `url' for Mastodon::Source:Module):
むー
よいしょ。
https://mastodon.zunda.ninja/about/more と https://mastodon.zunda.ninja/about/ のソースコードへのリンク先を動いているコードのコミットにしました。
本体には https://github.com/zunda/mastodon/commit/930c49130f3dc29d99f1f6b98059b421a3530e10 な感じの変更を加えて、Herokuへのデプロイ時に https://github.com/zunda/mastodon/blob/66d7f68dd77d918c5e84c0b79de43567e0dff341/lib/tasks/version.rake でイニシャライザをつくってハッシュを記録しています。
プルリクしようかなどうしようかな。
ブランチをpushしてPull requestつくるボタンが表示されないなあと思ったけどこのブラウザではGitHubにログインしていないのでしたw
$ bundle exec rake test
Run options: --seed 36147
# Running:
Finished in 0.001347s, 0.0000 runs/s, 0.0000 assertions/s.
0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
あのあのw
検索したら自分のメモがでてくるんだが… https://gist.github.com/zunda/aa6870d0f9f68e705d54d1fa882b0cc0
@ykzts 下記のような感じです。うーむむ。情けねーですがなんとかします
$ ./bin/rspec
/home/zunda/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/rubygems_integration.rb:432:in `block in replace_bin_path': can't find executable rspec for gem rspec-core. rspec-core is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)
:
from ./bin/rspec:17:in `<main>'
.ruby-versionが2.4.1になっててgem installすると./.rbenv/versions/2.4.1/bin/rspecができるんだけどこれを実行してもrspec-core gemがないとかなんとか
~/.rbenvをつくりなおしてgit cleanしたらrspec走りました!お騒がせしました。
$ bundle exec rake spec
/home/zunda/.rbenv/versions/2.4.1/bin/ruby -I/home/zunda/local/src/mastodon/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.6.0/lib:/home/zunda/local/src/mastodon/vendor/bundle/ruby/2.4.0/gems/rspec-support-3.6.0/lib /home/zunda/local/src/mastodon/vendor/bundle/ruby/2.4.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
きたー
1) about/show.html.haml has valid open graph tags
Failure/Error: = link_to t('about.source_code'), @instance_presenter.source_url
#<Double :instance_presenter> received unexpected message :source_url with (no args)
# ./app/views/about/show.html.haml:79:in `_app_views_about_show_html_haml___4610925122408189127_46949735648600'
# ./spec/views/about/show.html.haml_spec.rb:19:in `block (2 levels) in <top (required)>'
:
いえーい
Finished in 3 minutes 6.5 seconds (files took 5.71 seconds to load)
1654 examples, 0 failures, 20 pending
statusesには1つしか無かったな…
> WITH account AS (SELECT id FROM accounts WHERE domain='mstdn.kwmr.me')
SELECT statuses.id,statuses.updated_at,statuses.url
FROM account, statuses
WHERE account.id=statuses.account_id
AND statuses.text LIKE '%Mastodon is big in Japan.%'
ORDER BY updated_at DESC
;
-[ RECORD 1 ]--------------------------------------------------------------
id | 164785
updated_at | 2017-08-19 23:53:26.695334
url | https://mstdn.kwmr.me/users/kwmr/updates/445
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.