Browse Source

Makefile

master
Nick Sergeant 7 years ago
parent
commit
6d0544caab
  1. 1
      .gitignore
  2. 11
      Makefile

1
.gitignore vendored

@ -11,6 +11,7 @@
settings_local.py
settings_local_server.py
snipt.dump
snipt.dump.gz
media/cache
media/css/pro.css

11
Makefile

@ -146,13 +146,12 @@ vagrant:
@$(ssh-vagrant) '$(pm) rebuild_index --noinput;'
pulldb:
@ssh nick@snipt.net -p 55555 'sudo su -c "pg_dump snipt|gzip > /tmp/snipt.dump" postgres'
@scp -q -P 55555 nick@snipt.net:/tmp/snipt.dump snipt.dump.gz
@dropdb snipt
# @ssh nick@snipt.net -p 55555 'sudo su -c "pg_dump snipt|gzip > /tmp/snipt.dump" postgres'
# @scp -q -P 55555 nick@snipt.net:/tmp/snipt.dump snipt.dump.gz
# @dropdb snipt
@createdb snipt
@cat snipt.dump | gunzip | psql snipt
@cat snipt.dump | psql snipt
@rm snipt.dump snipt.dump.gz
@cat snipt.dump.gz | gunzip | psql snipt
@rm snipt.dump.gz
.PHONY: assets, \
db, \

Loading…
Cancel
Save