Commit graph

114 commits

Author SHA1 Message Date
Benjamin Neff
b2712ebf1d
Use libjemalloc if it's available for better memory usage
Fixes #6763

closes #7919
2018-11-04 03:04:39 +01:00
Brad Koehn
b80eb01f34
piped bin/bundle commands to suppress warnings when run on readonly filesystems
closes #7719
2018-02-22 00:45:45 +01:00
Saverio Miroddi
1ebb5dd72d
Don't print a warning when starting the server outside a Git repo
Currently, git checks are performed on server start, even when outside a git
repository.

This commit verify the presence of a git repository (via `git status` exit
code), and perform checks only if it exists.

closes #7712
2018-02-10 16:13:38 +01:00
Janakas
2e3b7dee1e
Check for a running redis in script/server
Fixes #5267

closes #7685
2017-12-30 15:40:30 +01:00
Finn Woelm
78986e6419 Fix: Check for asset precompilation when starting server
When `public/assets/` is a symlink, running `find public/assets ...`
does not return the correct result. By using `public/assets/`, find is
able to return the correct result regardless of whether the folder is an
actual folder or a symlink.

[ci skip]
2017-07-13 21:41:11 +07:00
spixi
fa0bd14dfb Fix script/server when bin/ is not in PATH
This fixes an issue, when the bin/ directory of diaspora is not in the PATH variable

closes #7281
2017-01-15 23:27:27 +01:00
Jonne Haß
6ffbfe3943
Merge branch 'stable' into develop 2016-06-26 13:12:43 +02:00
Jonne Haß
266ada3f24
script/server: check for main.js instead of home.css 2016-06-26 13:11:43 +02:00
Steffen van Bergerem
269512c1b8 Fix eye not stopping all processes
Fixes #6685. See 866ecd0587
2016-02-11 10:22:35 +01:00
Jonne Haß
c85fe3872e Replace DB environment variable with optional bundler groups
See the changes to the changelog for more details
2015-05-29 01:33:12 +02:00
Jonne Haß
898e8d5912 Remove deprecated port setting 2015-05-19 11:07:03 +02:00
Jonne Haß
4bde00177c replace foreman with eye
closes #5966
2015-05-19 02:55:31 +02:00
Jonne Haß
a21de8b190 Make listen directive for Unicorn configurable 2015-05-19 02:55:01 +02:00
Jonne Haß
288b83bd8d Merge pull request #5891 from mrbrdo/3824_environment_sanity_check
fix script/server sanity checks
2015-04-25 19:09:43 +02:00
Jan Berdajs
2fa4c07a9c fix sanity checks in script/server, remove migration check because it is too slow and Rails 4 checks it on first request anyway 2015-04-25 19:07:25 +02:00
Akash Agrawall
3763a87744 Environment sanity checks in script/server #3824 2015-04-25 17:46:51 +02:00
Jan Berdajs
8dcc5fafef fix broken output of script/server 2015-04-25 16:20:08 +02:00
Praveen Arimbrathodiyil
2613896cfd fix for #5862, check for compiled assets 2015-04-15 15:39:19 +02:00
Jonne Haß
a580171e32 Replace spork with spring, update & use binstubs
Spring is the recommended application preloader for rails
2014-12-01 08:06:07 +01:00
Lukas Matt
0308b70287 Print a warning unless they use a proxy
If you try to connect from a secure connection
to a insecure connection; Most modern browser
block the request and flag it as mixed-content.
2014-11-13 11:41:13 +01:00
Lukas Matt
9f827b9309 Start vines if chat and server is enabled 2014-11-13 11:38:34 +01:00
Lukas Matt
095608827e Add vines as foreman task 2014-11-13 11:36:55 +01:00
Jonne Haß
baacefbd92 look for hashed version of default.css in script/server
fixes #5254
2014-09-28 16:37:29 +02:00
Bigard Florian
2458568349 Fix typo 2014-06-20 11:17:54 +02:00
Jason Robinson
3fd938f7e7 Add warning to script/server if curl does not support AsyncDNS 2014-03-30 22:55:13 +03:00
Jonne Haß
58e8df4455 Remove automatic setting of the DB variable from script/server
* It's broken for those that would benefit from it (postgres users)
* It's broken in the design: Reading it from the config requires bundle exec ruby, which requires it being set properly
2013-09-01 19:08:44 +02:00
Jonne Haß
5760f177ea fix stupid heredoc usage in script/server 2013-06-02 20:25:10 +02:00
Jonne Haß
63b667bbef gracefully handle unavailable git in script/server 2013-05-20 18:14:33 +02:00
Jonne Haß
aca134d54a Refactor script/server
* Made style consistent
* Add helper functions to print messages
* Abort script if critical command fails
* Made number of started Sidekiq workers configurable again
2013-04-15 17:03:41 +02:00
Jonne Haß
79a79d65d6 Bye Resque. Ohai Sidekiq.
* Dropped all references to Resque
* Moved all jobs under app/workers since that's the Sidekiq convention
* Renamed Jobs module to Worker to match new location
* Adapted all jobs to Sidekiq
* Replaced all enqueue calls with perform_async
* Dropped Resque hacks from specs and features, replaced with
  sidekig/testing in RSpec and sidekig/testing/inline in Cucumber
* Updated scripts to start a Sidekiq server
* Inline Sidekiq sinatra app
* Let Sidekiq create the actual Redis instance
* Workaround already initialized constant warnings in service models
* Resolved ToDo in one job definition by creating proper exception clases
  for some errors in receiving posts
* Added sidekiq section to configuration to make it completly
  configurable to the user
* Add Sidekiq middleware for clean backtraces
* Delay HttpMulti retry to give offline pods a chance to come back up
* Do not retry on GUID already taken and alike errors
* Be graceful about deleted posts in GatherOEmbedData
2013-03-21 23:39:07 +01:00
Jonne Haß
5cede18e8d exec foreman in script/server 2013-02-18 21:31:54 +01:00
Jonne Haß
2a7a0b7b99 * made number of unicorn worker processes configurable
* made configuration loader indepenent of rails
* corrected mismatch between example and default config (server.db/server.database)
2012-11-30 14:00:25 +01:00
Eitan Adler
9b75f1a83e Remove non-portable bashisms from most of the scripts.
Only install.sh has any bashisms left. However, the bug
which prevented it from running on most systems (using
/bin/bash directly) has been fixed.
2012-11-04 22:41:01 +01:00
Jonne Haß
e75aa111e3 use foremans formation option and not the alias concurrency, start unicorn_rails instead of unicorn 2012-11-04 17:05:16 +01:00
Jonne Haß
f0ef4a764e refactor script/server and associated stuff 2012-10-19 12:25:15 +02:00
Jonne Haß
2a4db54db9 New configuration system
* Throw away old system
* Add new system
* Add new example files
* Replace all calls
* add the most important docs
* Add Specs
* rename disable_ssl_requirement to require_ssl
* cloudfiles isn't used/called in our code
* since community_spotlight.list is only used as enable flag replace it with such one and remove all legacy and irelevant codepaths around it
* die if session secret is unset and on heroku
* First basic infrastructure for version information
2012-09-26 20:19:37 +02:00
Jonne Haß
53c77f7efd drop rename notice about script_server.yml [ci skip] 2012-09-10 14:00:02 +02:00
David Morley
8be3267d00 remove jammit 2012-05-30 10:22:28 -07:00
Jonne Haß
5cb8cd789e do not query for socket port in script/server [ci skip] 2012-01-19 22:33:30 +01:00
Sarah Mei
dcba59043d Related to #2020 - add note to script/server header telling people to use foreman instead for development 2012-01-12 06:29:29 -08:00
danielgrippi
0e5bb81d66 remove all references to the websocket. bang bang. 2012-01-10 12:28:19 -08:00
Jonne Haß
6859f97145 comment out websocket in script/server 2012-01-04 16:58:01 +01:00
Jonne Haß
f774ceae1b do not handle redis stuff in script/server, let the user do it 2011-12-29 15:45:28 +01:00
Jonne Hass
2cad824c82 remove resque-scheduler from start scripts (resque-retry revert) 2011-11-08 13:40:18 +01:00
Manuel Schölling
2de3f87c99 Added 'rake resque/scheduler' 2011-10-28 23:24:55 +02:00
Sarah Mei
5dc36b14cc Make script/server work on OS X again - -e is not a valid option to readlink on darwin 2011-10-21 14:41:10 -07:00
danielgrippi
91e649977c MS DG update copyright 2011-09-14 11:23:12 -07:00
Jonne Hass
54044067e7 get sure script/get_config is executed with the right environment 2011-09-11 16:46:25 +02:00
Jonne Hass
a614985d83 made single process mode configuration more consistent
* SINGLE_PROCESS_MODE environment variable takes precedence over
  application.yml setting
* SINGLE_PROCESS environment variable takes precedence over
  SINGLE_PROCESS_MODE environment variable to be backward compatible
2011-09-11 13:54:14 +02:00
Jonne Hass
b38cf47661 rename config/script_server_config.yml to config/script_server.yml to remove redundancy 2011-09-07 03:30:43 +02:00