From f6a7e5a3576f96ea7795ebacaa2475c7a2414645 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 19 May 2018 08:54:46 +0200 Subject: [PATCH] Fix the deploy build --- app.py | 4 ++-- docker-compose.yml | 4 ++-- static/css/theme.css | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 static/css/theme.css diff --git a/app.py b/app.py index 9aece91..70d0060 100644 --- a/app.py +++ b/app.py @@ -58,8 +58,8 @@ app.secret_key = get_secret_key('flask') JWT_SECRET = get_secret_key('jwt') JWT = JSONWebSignatureSerializer(JWT_SECRET) -with open('config/jwt_token', 'w+') as f: - f.write(JWT.dumps({'type': 'admin_token'})) +with open('config/jwt_token', 'wb+') as f: + f.write(JWT.dumps({'type': 'admin_token'})) # type: ignore SIG_AUTH = HTTPSigAuth(ID+'#main-key', KEY.privkey) diff --git a/docker-compose.yml b/docker-compose.yml index 50516aa..ad08caa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: - "./config:/app/config" - "./static:/app/static" environment: - - MICROBLOGPUB_AMQP_BORKER=pyamqp://guest@rabbitmq// + - MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq// - MICROBLOGPUB_MONGODB_HOST=mongo:27017 celery: build: . @@ -20,7 +20,7 @@ services: - rabbitmq command: 'celery worker -l info -A tasks' environment: - - MICROBLOGPUB_AMQP_BORKER=pyamqp://guest@rabbitmq// + - MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq// - MICROBLOGPUB_MONGODB_HOST=mongo:27017 mongo: image: "mongo:latest" diff --git a/static/css/theme.css b/static/css/theme.css new file mode 100644 index 0000000..4efc7a4 --- /dev/null +++ b/static/css/theme.css @@ -0,0 +1 @@ +.note-container p:first-child{margin-top:0}html,body{height:100%}body{background-color:#eee;color:#111;display:flex;flex-direction:column}.base-container{flex:1 0 auto}.footer{flex-shrink:0}a,h1,h2,h3,h4,h5,h6{color:#333}a{text-decoration:none}a:hover{text-decoration:underline}.gold{color:#1d781d}#header{margin-bottom:40px}#header .title{font-size:1.2em;padding-right:15px;color:#333}#header .title:hover{text-decoration:none}#header .subtitle-username{color:#111}#header .menu{padding:20px 0 10px 0}#header .menu ul{display:inline;list-style-type:none;padding:0}#header .menu ul li{float:left;padding-right:10px;margin-bottom:10px}#header .menu a{padding:2px 7px}#header .menu a.selected{background:#1d781d;color:#eee;border-radius:2px}#header .menu a:hover{background:#1d781d;color:#eee;text-decoration:none}#container{width:90%;max-width:720px;margin:40px auto}#container #notes{margin-top:20px}.actor-box{display:block;text-decoration:none;margin-bottom:40px}.actor-box .actor-icon{width:100%;max-width:120px;border-radius:2px}.actor-box h3{margin:0}.note{display:flex;margin-bottom:70px}.note .l{color:#333}.note .h-card{flex:initial;width:50px}.note .u-photo{width:50px;border-radius:2px}.note .note-wrapper{flex:1;padding-left:15px}.note .bottom-bar{margin-top:10px}.note .img-attachment{max-width:100%;border-radius:2px}.note h3{font-size:1.1em;color:#555}.note strong{font-weight:600}.note .note-container{clear:right;padding:10px 0}.bar-item{background:#ddd;padding:5px;color:#555;margin-right:5px;border-radius:2px}.bottom-bar .perma-item{margin-right:5px}.bottom-bar a.bar-item:hover{text-decoration:none}.footer>div{width:90%;max-width:720px;margin:40px auto}.footer a,.footer a:hover,.footer a:visited{text-decoration:underline;color:#111}.summary{color:#111;font-size:1.3em;margin-top:50px;margin-bottom:70px}.summary a,.summay a:hover{color:#111;text-decoration:underline}#followers,#following,#new{margin-top:50px}#admin{margin-top:50px}textarea,input{background:#ddd;padding:10px;color:#555;border:0px;border-radius:2px}input{padding:10px}input[type=submit]{color:#1d781d;text-transform:uppercase}