Piotr Sarnacki
e093fde18c
Return error with application/json content type by default
2013-08-05 12:10:02 +02:00
Konstantin Haase
03d124d1b7
metrics for request queue
2013-07-11 18:13:23 +02:00
Konstantin Haase
8707f3b357
set X-Middleware-Start for NewRelic
2013-07-11 17:49:21 +02:00
Konstantin Haase
2c361e4292
drop rack-timeout
2013-07-11 17:27:32 +02:00
Konstantin Haase
60af7546a2
add rack-timeout
2013-07-11 16:37:02 +02:00
Mathias Meyer
e6b61f92f4
Return 420 to a blacklisted client.
2013-07-09 11:37:37 +02:00
Mathias Meyer
a46488078f
Add rack-attack, block one client who's hammering us.
2013-07-09 11:02:38 +02:00
Mathias Meyer
5971946d35
Use our own middlewares explicitly.
2013-05-18 11:11:43 +02:00
Piotr Sarnacki
935288e8e9
Don't load octopus if there is no need
2013-05-05 00:27:10 +02:00
Josh Kalderimis
cd7cce54b5
add some output when the db follower is setup
2013-05-03 10:31:53 +02:00
Josh Kalderimis
a949b58d98
merging all the things
2013-05-03 10:12:16 +02:00
Josh Kalderimis
407a08f644
only use the db follower if use_database_follower is set in the config
2013-05-03 09:42:07 +02:00
Piotr Sarnacki
f6d781c248
Enable octopus
2013-05-03 00:43:57 +02:00
Josh Kalderimis
10c8d4b95f
hit my head against a wall
2013-05-03 00:43:22 +02:00
Josh Kalderimis
4ea1079d39
turn on octopus in staging
2013-05-03 00:43:22 +02:00
Josh Kalderimis
135008f1ea
only add the shards info if in prod mode
2013-05-03 00:43:22 +02:00
Josh Kalderimis
e6f1e22ae8
octopus is on in production by default only
2013-05-03 00:43:22 +02:00
Josh Kalderimis
76e55c0125
i don't think this is the best solution
2013-05-03 00:43:20 +02:00
Josh Kalderimis
a0a92b23fa
change the require order
2013-05-03 00:42:30 +02:00
Josh Kalderimis
48c8e8c2a5
merging stuff and fun
2013-05-02 20:06:19 +02:00
Piotr Sarnacki
cd9e089631
Enable octopus
2013-05-02 19:48:23 +02:00
Josh Kalderimis
6feed54684
hit my head against a wall
2013-05-02 19:16:52 +02:00
Josh Kalderimis
1a8b60cc98
turn on octopus in staging
2013-05-02 18:50:59 +02:00
Josh Kalderimis
69b8dff382
only add the shards info if in prod mode
2013-05-02 18:44:27 +02:00
Josh Kalderimis
d72f6ca02d
octopus is on in production by default only
2013-05-02 18:23:41 +02:00
Josh Kalderimis
f4132786a6
i don't think this is the best solution
2013-05-02 18:05:32 +02:00
Josh Kalderimis
de6cb2c163
change the require order
2013-05-02 17:21:56 +02:00
Josh Kalderimis
ab2714621f
i wonder what i am doing wrong with octopus
2013-05-02 17:08:31 +02:00
Josh Kalderimis
afddbb76ba
require octopus
2013-05-02 16:45:34 +02:00
Josh Kalderimis
fa6ea0692d
use a follower for one of the repos endpoint
2013-05-02 16:38:20 +02:00
Piotr Sarnacki
2efd1cb9a6
It's .deploy-sha, not .deploy_sha 😡
2013-03-16 16:42:52 +01:00
Piotr Sarnacki
7099331907
Read .deploy-sha file from the proper path
2013-03-16 15:34:59 +01:00
Konstantin Haase
2e6865d55f
don't run metrics etc in heroku console
2013-02-14 19:12:26 +01:00
Piotr Sarnacki
0eadcfedbd
Use redis for sidekiq from config also on staging
2013-02-06 14:20:03 +01:00
Sven Fuchs
598a586ed4
don't start metrics logger etc unless in production
2013-01-26 20:43:54 +01:00
Sven Fuchs
d441336573
expose logs on /job/:id/log.txt
2013-01-26 20:43:54 +01:00
Sven Fuchs
37dd125a8c
start notifications
2013-01-23 22:17:40 +01:00
Sven Fuchs
a9bf43c1fd
always use etag for caching when cache_key or updated_at are present, add the deploy_sha as a cache buster
2012-12-09 19:22:33 +01:00
Sven Fuchs
f19f5f9879
check redis for :use_rack_cache
2012-12-09 15:16:50 +01:00
Mathias Meyer
142fad9b81
Hook up activerecord metrics log subscriber.
2012-12-05 11:11:18 +01:00
Mathias Meyer
ecd236a8ff
Add metriks.
2012-12-05 11:11:18 +01:00
Sven Fuchs
24b6843bda
Merge branch 'master' of github.com:travis-ci/travis-api
...
Conflicts:
Gemfile.lock
2012-11-27 15:23:22 +01:00
Sven Fuchs
aff75592e3
don't set services manually
2012-11-27 15:22:23 +01:00
Piotr Sarnacki
76a4becb55
Add prefix for Rack::Cache
2012-11-25 23:48:39 +01:00
Mathias Meyer
3fc6059d03
require 'raven'
2012-11-07 11:54:50 +01:00
Mathias Meyer
612b7f1e9f
Switch to sentry for exceptions.
2012-11-07 11:46:43 +01:00
Mathias Meyer
901d936531
Set up Sidekiq properly.
2012-11-07 10:59:13 +01:00
Mathias Meyer
b07667c52a
Set up sidekiq.
2012-11-07 10:55:45 +01:00
Mathias Meyer
308ce72aee
Bump travis-core. Start features on app boot.
2012-11-07 10:43:25 +01:00
Piotr Sarnacki
2f87153df9
Move CORS middleware in front of the stack
...
If there is an error somewhere along the line (like in DB connection
management), it should not interfere with returning proper result for
OPTIONS request. Otherwise it's hard to guess why the actual request in
the browser was not properly sent.
2012-11-05 21:48:13 +01:00
Piotr Sarnacki
e2b49a91d6
Use AR's ConnectionManagement before AR::QueryCache
...
(closes #14 )
2012-11-01 13:05:49 +01:00
Piotr Sarnacki
37e6262917
Don't show backtraces on errors
2012-11-01 00:04:08 +01:00
Piotr Sarnacki
30d7b90592
Fix new relic
2012-10-24 20:49:06 +02:00
Konstantin Haase
73eea4d51b
always call setup
2012-10-22 23:53:41 +02:00
Sven Fuchs
272c1275f4
add activerecord query cache
2012-10-12 01:51:59 +02:00
Sven Fuchs
02f5eea4fc
try using rack/cache with memcached
2012-10-11 15:04:24 +02:00
Sven Fuchs
8abd6fa150
manual redirects and rewrite rules for supporting v1 style resources
2012-10-10 01:48:22 +02:00
Sven Fuchs
f8bd49e88b
on 404 redirect for /owner/name paths on v1
2012-10-10 01:47:12 +02:00
Sven Fuchs
168c0abba9
rename Responder to Base (resembles Sinatra::Base and i can't come up with another name for a common base class of Middleware and Endpoint)
2012-10-09 18:31:51 +02:00
Sven Fuchs
c3428e896a
add deflater, roger @rkh?
2012-10-05 21:54:01 +02:00
Sven Fuchs
4328ba8649
adapt services changes from travis-core
2012-10-05 13:06:50 +02:00
Sven Fuchs
289f7c1486
start porting api integration tests
2012-10-02 16:39:38 +02:00
Sven Fuchs
5ff58b1d6c
adapt changes for split services
2012-09-29 20:48:31 +02:00
Sven Fuchs
6dc28f0c49
add Rack::PostBodyContentTypeParser and fix locale update
2012-09-26 11:58:57 +02:00
Sven Fuchs
f09cb3cac0
set the amqp configuration
2012-09-25 18:47:05 +02:00
Sven Fuchs
68caf0e26e
add newrelic
2012-09-25 17:54:13 +02:00
Sven Fuchs
97e06c556f
add hubble
2012-09-25 17:16:27 +02:00
Konstantin Haase
fb992184a0
add jsonp
2012-09-20 14:53:16 +02:00
Konstantin Haase
742583e8e9
make sure we don't leak the github oauth code via a referrer
2012-09-19 16:29:11 +02:00
Sven Fuchs
79e382ce0b
add services
2012-09-15 12:10:46 +02:00
Konstantin Haase
f05f841a46
move config around
2012-09-11 13:54:59 +02:00
Konstantin Haase
bff18a278c
split up setup method
2012-08-24 18:28:08 +02:00
Konstantin Haase
17d053ac21
setup should not take options
...
otherwise options would be ignored for subsequent calls
2012-08-24 18:20:20 +02:00
Konstantin Haase
0eb8b9fed2
for some reason gh is not loaded in production
2012-08-15 01:33:47 +02:00
Konstantin Haase
f05ea7198b
fully implement access tokens
2012-08-15 00:52:22 +02:00
Konstantin Haase
44afb75630
add ActiveRecord::ConnectionAdapters::ConnectionManagement
2012-08-10 00:28:49 +02:00
Piotr Sarnacki
5714fcf36d
Allow turning off Home::Endpoint
...
Home::Endpoint by default redirects GET / request to /docs. This may be
desireable when Travis::Api::App is the only app running, but if it's
running in front of other app, you may want to keep root for other
things.
2012-08-09 23:45:39 +02:00
Konstantin Haase
29e387140a
first stab at authorization
2012-07-28 19:47:45 +02:00
Konstantin Haase
7baf61054c
rewrite all the things
2012-07-27 15:55:57 +02:00
Konstantin Haase
f67e72602b
add CORS support
2012-07-23 15:16:26 +02:00
Konstantin Haase
e2e9572b50
set all responses to json
2012-07-23 14:18:42 +02:00
Sven Fuchs
cca12ce0c9
use Job::Test
2012-07-22 15:37:58 +02:00
Sven Fuchs
76324f00a1
stuff
2012-07-20 16:53:13 +02:00
Sven Fuchs
5c29457066
initial commit
2012-07-18 14:56:41 +02:00