now-compose
now-compose copied to clipboard
Cannot set property 'NOW_DEPLOYED' of undefined
Hello
When deploy, it shows "Cannot set property 'NOW_DEPLOYED' of undefined". How to set?
Can you post your docker-compose.yml
?
Sure, it runs successfully with docker-compose
version: "3"
services:
scrapyd:
container_name: sc1
hostname: sc1
image: zaim/scrapyd
ports:
- "6800:6800"
spiderkeeper:
container_name: sd1
hostname: sd1
build: ./spiderkeeper
command: --server=http://sc1:6800 --no-auth
ports:
- "5000:5000"
depends_on:
- scrapyd
I'm also having the same problem. I get the cannot set property of NOW_DEPLOYED of undefined, but everything works with docker-compose. The below is my docker-compose.yml
version: '3'
services:
client:
build: Client
ports:
- "80:80"
restart: on-failure
links:
- server
depends_on:
- server
server:
build: Server
ports:
- "81:81"
You can try setting the environment variable in your docker-compose file and leaving it empty.
Otherwise I have stopped development on this project with the release of now 2.0. But feel free to make a pull request if you have a solution to this issue