getweber / weber-backend Goto Github PK
View Code? Open in Web Editor NEWFlask skeleton based on weber-minimal with a database and backend support utilities
Home Page: http://weber.readthedocs.org
License: Other
Flask skeleton based on weber-minimal with a database and backend support utilities
Home Page: http://weber.readthedocs.org
License: Other
/o/weber-backend git:master # ❯❯❯ python manage.py docker start
Traceback (most recent call last):
File "manage.py", line 190, in <module>
cli()
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 610, in __call__
return self.main(*args, **kwargs)
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "manage.py", line 165, in start
_run_docker_start(port)
File "manage.py", line 173, in _run_docker_start
binds={os.path.join(persistent_dir, "db"):'/var/lib/postgresql/data'})
File "/opt/weber-backend/_lib/docker.py", line 129, in start_docker_container
docker.start(name, binds=binds, port_bindings=port_bindings, links=links)
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/docker/client.py", line 857, in start
extra_hosts=extra_hosts, read_only=read_only, pid_mode=pid_mode
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/docker/utils/utils.py", line 407, in create_host_config
port_bindings
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/docker/utils/utils.py", line 160, in convert_port_bindings
for k, v in six.iteritems(port_bindings):
File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/six.py", line 576, in iteritems
return iter(d.iteritems(**kw))
AttributeError: 'tuple' object has no attribute 'iteritems'
The offending default port tuple is in _lib/docker.py:
113 def start_docker_container(image, name, binds, port_bindings=(), links=()):
This is with docker-py 1.0.0
Failing on setup_db stage.
Is there a known workaround that just isn't in the repo?
TASK [db : setup db] ***********************************************************
fatal: [riddler]: FAILED! => {"failed": true, "msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user. For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user"}
Since the vagrant is using Ubuntu trusty, installing postgresql includes some extra steps (editing the /etc/apt/sources.list.d/pgdg.list
wget
etc.) described in http://www.postgresql.org/download/linux/ubuntu/
It would have been nice to get the weber to work out of the box.
Newer Ubuntu? patching ansible to do it?
If a python manage.py deploy --dest vagrant
fails, subsequent calls will not succeed
The error:
The box 'chef/centos-7.0' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://atlas.hashicorp.com/chef/centos-7.0"]
Error: The requested URL returned error: 404 Not Found
Only vagrant destroy
solves the problem
I added a package (apscheduler
) I'm importing in manage.py
added it to app.txt
under deps,
Still running make testserver
gets me:
ImportError: No module named apscheduler.scheduler
There are other packages used in manage.py, and I know when running make testserver
on the first time, pip is running and installing. Why isn't it happening on the second time? Any bootstrap code I'm missing?
Hey Guys,
Quick question about an old nginx change:
Do we don't touch nginx.conf in case of ubuntu on purpose? or is it a bug?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.