diff options
author | MrZYX <pr0fkill@gmail.com> | 2011-03-26 19:57:13 +0300 |
---|---|---|
committer | MrZYX <pr0fkill@gmail.com> | 2011-03-26 19:57:13 +0300 |
commit | 867a5e143fffd0a29a19db3ecb62637c2203d0ba (patch) | |
tree | 0f6420e20b12f5cd9677c62aef907e9a02d42920 /script | |
parent | 92d6b618aaf5d815b1992cc1e99242c9545aff92 (diff) |
comment out init_public in script server for now as it's buggy and confuses users
Diffstat (limited to 'script')
-rwxr-xr-x | script/server | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/script/server b/script/server index 6d71e3a46..79ddf4320 100755 --- a/script/server +++ b/script/server @@ -101,14 +101,14 @@ done # Is someone listening on the ports already? (ipv4 only test ?) services=$( chk_service $THIN_PORT ) if [ -n "$services" ]; then - echo "Error: thin port $THIN_PORT is already in use. Exiting" >&2 + echo "FATAL: Error: thin port $THIN_PORT is already in use. Exiting" >&2 echo " $services" exit 64 fi services=$( chk_service $SOCKET_PORT ) if [ -n "$services" ]; then - echo "Error: websocket port $SOCKET_PORT is already in use. Exiting" >&2 + echo "FATAL: Error: websocket port $SOCKET_PORT is already in use. Exiting" >&2 echo " $services" exit 64 fi @@ -116,7 +116,7 @@ fi # See http://bugs.joindiaspora.com/issues/722 services=$( chk_service 5379 ) if [ -n "$services" ]; then - echo "Error: Someone (another redis server?) is using redis port 5379" >&2 + echo "FATAL: Error: Someone (another redis server?) is using redis port 5379" >&2 echo " $services" exit 64 fi @@ -131,36 +131,43 @@ if [ -w public -a ! -e public/source.tar.gz ]; then tar czf public/source.tar.gz `git ls-tree -r $branch | awk '{print $4}'` fi if [ ! -e public/source.tar.gz ]; then - echo "Error: Can't find, or even create, public/source.tar.gz. Exiting" >&2 + echo "FATAL: Error: Can't find, or even create, public/source.tar.gz. Exiting" >&2 exit 65 fi # Check if config files exists if [ ! -e 'config/app_config.yml' ]; then - echo "config/app_config.yml is missing! Copy over config/app_config.yml.example to config/app_config.yml and edit it properly!" >&2 + echo "FATAL: config/app_config.yml is missing! Copy over config/app_config.yml.example to config/app_config.yml and edit it properly!" >&2 exit 67 fi if [ ! -e 'config/database.yml' ]; then - echo 'config/database.yml is missing! Copy over config/database.yml.example to config/database.yml and edit it properly!' >&2 + echo 'FATAL: config/database.yml is missing! Copy over config/database.yml.example to config/database.yml and edit it properly!' >&2 exit 68 fi # Precache jammit assets -if [[ -w public && ! -e 'public/stylesheets/application.css' ]]; then - if [ "$INIT_PUBLIC" != 'no' ]; then - echo "Making first-time server initialization." - init_public +#if [[ -w public && ! -e 'public/stylesheets/application.css' ]]; then +# if [ "$INIT_PUBLIC" != 'no' ]; then +# echo "Making first-time server initialization." +# init_public +# fi +#fi + +#if [ ! -e 'public/stylesheets/application.css' ]; then +# echo 'WARNING: Jammit precache error (now or at install)' >&2 +#fi + +if [ ! -e 'public/assets/default.css']; then + if ["$RAILS_ENV" == 'production']; then + echo "INFO: If you want further performance improvements," >&2 + echo "after the first request to the page after each git pull, run:" >&2 + echo "bundle exec jammit" >&2 fi fi -if [ ! -e 'public/stylesheets/application.css' ]; then - echo 'Jammit precache error (now or at install)' >&2 -fi - - mkdir -p -v log/thin/ bundle exec ruby ./script/websocket_server.rb& redis-server config/redis.conf &>log/redis-console.log & |