20 lines
374 B
Bash
Executable file
20 lines
374 B
Bash
Executable file
#!/bin/sh
|
|
|
|
|
|
# --restart always \
|
|
# docker run -d \
|
|
# --rm \
|
|
# --name casperjs-daemon \
|
|
# -v $(pwd):/home/casperjs-tests \
|
|
# vitr/casperjs
|
|
#--engine=slimerjs \
|
|
|
|
export PATH="$(npm bin):$PATH"
|
|
$(npm bin)/casperjs \
|
|
--log-level=debug \
|
|
--engine=slimerjs \
|
|
./download.js \
|
|
"URL"
|
|
|
|
# docker exec casperjs-daemon phantomjs download.js "URL"
|
|
# docker stop casperjs-daemon
|