Skip to content

Commit

Permalink
remove contents
Browse files Browse the repository at this point in the history
  • Loading branch information
zodman committed Nov 29, 2020
1 parent 9c97b7a commit 5f9dd7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/templates/_chat_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<textarea data-target="chat.input" placeholder="Type your message.." minlength="4"></textarea>
<button data-action="click->chat#post" type="submit"> Send </button>
<div>
<small>Messages stored {{chats|length}} of {{total}}</small>
<small>Messages stored {{chats|length}}</small>
</div>
</form>
</article>
10 changes: 5 additions & 5 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

exclude_dirs = [".git", "node_modules", ".cache", ".github", "db.sqlite3"]


@task
def deploy(ctx):
local("yarn build", echo=True)
local("python manage.py collectstatic --noinput", echo=True)

This comment has been minimized.

Copy link
@jonathan-s

jonathan-s Nov 29, 2020

Collaborator

While this should work, it could be a good idea to use collectstatic --clear, just in case prior to this command. Caching can be a pain to debug.

From docs.

On subsequent collectstatic runs (if STATIC_ROOT isn’t empty), files are copied only if they have a modified timestamp greater than the timestamp of the file in STATIC_ROOT. Therefore if you remove an application from INSTALLED_APPS, it’s a good idea to use the collectstatic --clear option in order to remove stale static files.

rsync(ctx, "static/", "apps/django-sockpuppet-expo/static/", exclude=exclude_dirs)
rsync(ctx, "static/", "apps/django-sockpuppet-expo/static/",
exclude=exclude_dirs)
with ctx.cd("~/apps/django-sockpuppet-expo"):
ctx.run('git pull')
with ctx.prefix("source .env/bin/activate"):
ctx.run('python -m pip install -r requirements.in')
ctx.run('python3.8 manage.py migrate')
ctx.run('python -m pip install --upgrade -r requirements.in')
ctx.run('python manage.py migrate')
ctx.run("sudo supervisorctl restart expo:*")


0 comments on commit 5f9dd7a

Please sign in to comment.