bind mount
parent
f159d04987
commit
82886951f2
|
|
@ -53,7 +53,7 @@ router.get("/:id",function(req,res){
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get("/download/:id",function(req,res){
|
router.get("/download/:id",function(req,res){
|
||||||
var finalStorage = '/home/ofbbutte/webapps/ofbstatic/media/';
|
var finalStorage = '/media/';// '/home/ofbbutte/webapps/ofbstatic/media/';
|
||||||
dbSermons.getSermon(req.params.id,function(error,sermon){
|
dbSermons.getSermon(req.params.id,function(error,sermon){
|
||||||
if (error){
|
if (error){
|
||||||
res.status(404).json({"status":404,"message":"Error processing request"});
|
res.status(404).json({"status":404,"message":"Error processing request"});
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
web:
|
|
||||||
build: .
|
|
||||||
ports:
|
|
||||||
- "8111:8111"
|
|
||||||
|
|
@ -10,7 +10,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- docker build --tag ofb_angular .
|
- docker build --tag ofb_angular .
|
||||||
- docker rm -f ofb_angular || true
|
- docker rm -f ofb_angular || true
|
||||||
- docker run --name ofb_angular --restart always -d -p "8111:8111" ofb_angular
|
- docker run --name ofb_angular --restart always -v /home/admin/web/static.danabsher.com/public_html/media:/media -d -p "8111:8111" ofb_angular
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue