mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing public_root in assets.yml to be readbale by old yml.
This commit is contained in:
parent
346d38096f
commit
0dbe86605b
3 changed files with 12 additions and 16 deletions
|
@ -8,7 +8,7 @@ javascript_compressor: closure
|
|||
template_function: _.template
|
||||
|
||||
# Location of static assets relative to CWD.
|
||||
public_root: .
|
||||
public_root: "."
|
||||
|
||||
# Package data-uri and mhtml variants of stylesheets, with whitelisted
|
||||
# images embedded inline.
|
||||
|
|
25
fabfile.py
vendored
25
fabfile.py
vendored
|
@ -70,23 +70,27 @@ def pull():
|
|||
run('git pull')
|
||||
|
||||
def deploy():
|
||||
# compress_media()
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('git pull')
|
||||
run('mkdir -p static')
|
||||
put('static/*', '%s/static/' % env.NEWSBLUR_PATH)
|
||||
run('kill -HUP `cat logs/gunicorn.pid`')
|
||||
run('curl -s http://%s > /dev/null' % env.host)
|
||||
# run('curl -s http://%s/m/ > /dev/null' % env.host)
|
||||
run('curl -s http://%s/api/add_site_load_script/ABCDEF > /dev/null' % env.host)
|
||||
compress_media()
|
||||
|
||||
def deploy_full():
|
||||
compress_media()
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('git pull')
|
||||
run('./manage.py migrate')
|
||||
run('mkdir -p static')
|
||||
run('rm -fr static/*')
|
||||
put('static/*', 'static/')
|
||||
with settings(warn_only=True):
|
||||
run('sudo supervisorctl restart gunicorn')
|
||||
run('curl -s http://www.newsblur.com > /dev/null')
|
||||
run('curl -s http://www.newsblur.com/m/ > /dev/null')
|
||||
compress_media()
|
||||
|
||||
def restart_gunicorn():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
|
@ -99,21 +103,21 @@ def gunicorn_stop():
|
|||
run('sudo supervisorctl stop gunicorn')
|
||||
|
||||
def staging():
|
||||
compress_media()
|
||||
with cd('~/staging'):
|
||||
run('git pull')
|
||||
run('kill -HUP `cat logs/gunicorn.pid`')
|
||||
run('curl -s http://dev.newsblur.com > /dev/null')
|
||||
run('curl -s http://dev.newsblur.com/m/ > /dev/null')
|
||||
compress_media()
|
||||
|
||||
def staging_full():
|
||||
compress_media()
|
||||
with cd('~/staging'):
|
||||
run('git pull')
|
||||
run('./manage.py migrate')
|
||||
run('kill -HUP `cat logs/gunicorn.pid`')
|
||||
run('curl -s http://dev.newsblur.com > /dev/null')
|
||||
run('curl -s http://dev.newsblur.com/m/ > /dev/null')
|
||||
compress_media()
|
||||
|
||||
def celery():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
|
@ -137,15 +141,8 @@ def kill_celery():
|
|||
run('ps aux | grep celeryd | egrep -v grep | awk \'{print $2}\' | sudo xargs kill -9')
|
||||
|
||||
def compress_media():
|
||||
with cd('media/js'):
|
||||
run('rm -f *.gz')
|
||||
run('for js in *-compressed-*.js; do gzip -9 $js -c > $js.gz; done;')
|
||||
with cd('media/css/mobile'):
|
||||
run('rm -f *.gz')
|
||||
run('for css in *-compressed-*.css; do gzip -9 $css -c > $css.gz; done;')
|
||||
with cd('media/css'):
|
||||
run('rm -f *.gz')
|
||||
run('for css in *-compressed-*.css; do gzip -9 $css -c > $css.gz; done;')
|
||||
local('rm -fr static/*')
|
||||
local('jammit -c assets.yml --base-url http://www.newsblur.com --output static')
|
||||
|
||||
# ===========
|
||||
# = Backups =
|
||||
|
|
|
@ -193,7 +193,6 @@ body.NB-theme-serif #story_pane .NB-feed-story-content {
|
|||
}
|
||||
|
||||
.NB-account input[type=submit] {
|
||||
/* height: 40px;*/
|
||||
outline: none;
|
||||
width: 186px; /* 174=input-width + 5*2=padding + 2=border */
|
||||
margin: 4px 5px 0 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue