edinburgh-genome-foundry / cab Goto Github PK
View Code? Open in Web Editor NEW:oncoming_taxi: The friendly Computational App Boilerplate. Django + Vue.JS + Redis queues + NginX
License: Other
:oncoming_taxi: The friendly Computational App Boilerplate. Django + Vue.JS + Redis queues + NginX
License: Other
I'm not sure if I've done anything wrong at my end, but when I simply clone repo and follow instructions running docker-compose up, the build fails right at the end? I tried running as sudo but it still faults with same error. I'm running OSX Mojave (10.14.6).
...
Build complete.
Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.
Removing intermediate container d9593cafbe15
---> 007732ad8c04
Successfully built 007732ad8c04
Successfully tagged cab_vue:latest
WARNING: Image for service vue was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating cab_vue_1 ...
Creating cab_redis_1 ... done
Creating cab_rqworker_1 ... error
Creating cab_vue_1 ... done
ERROR: for cab_rqworker_1 Cannot start service rqworker: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./rqworker_reload.sh\": permission denied": unknown
ERROR: for rqworker Cannot start service rqworker: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./rqworker_reload.sh\": permission denied": unknown
ERROR: Encountered errors while bringing up the project.
Thank you for any help!
Hi Zulko,
I also had problems with ssh-keyscan commands,
but after commenting them out I got npm install issue:
ERROR: Service 'vue' failed to build: The command '/bin/sh -c npm install spa-http-server -g' returned a non-zero code: 139
My app generated a result csv file 123.csv and I put it into the backend/app/data folder
I created a link in the result page as
http://localhost/download/123.csv
then I create this url entry in backend/website/urls.py
url(r'^api/download/<str:filename>$', views.download_file, name="download")
and defined the download_file view function in backend/app/views/init.py
def download_file(request, filename):
print("**** download_file function ..........")
response = HttpResponse(content_type='text/csv')
response['Content-Disposition'] = 'attachment; filename="export.csv"'
writer = csv.writer(response)
writer.writerow(['id', 'EmpID', 'BarID', 'Username', 'Type', 'Liability', 'Date'])
# for item in data:
# writer.writerow([item.id, item.EmpID, item.BarID, item.Username, item.Type, item.Liability, item.Date])
return response
However, when I click the link url
http://localhost/download/123.csv
it reports
Cannot GET /download/123.csv
and it did not trigger my download_file view function
it seems did not map the url successfully to the view function. download_file()
How should I set the url entry to map the
http://localhost/download/123.csv link to the download_file() function?
Thanks
George
getaddrinfo git.genomefoundry.org: Name or service not known
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.