I'm trying to download files from my production site's "views" folder (Node & Docker) to my local machine. However, Wappler seems to have a bug where it looks in public/ for anything I try to download:
Error response from daemon: Could not find the file /opt/node_app/public/views/. in container 8b60e693c2ff6f1a8df05796d637ab368885d86622fd81a963c5872fb9d00b83
Error downloading public/views
There are files in my production views/ folder that I need copies of but can't get Wappler to download them.
I ended up being able to copy the files locally using the following steps:
- Open Digital Ocean's "console" which is an ssh connection to my server
- Run 'docker ps' to get the container image of my webserver container
- Then run 'docker cp <container_id>:/opt/node_app/views <local_path>' where the local path is still on the remote server. Since this was temporary, I just placed the files in /root/views/.
- Now I have copies of the files from within the container, on the host machine.
- Exit DO's console and then I opened terminal on my Mac, changed directory to where I want the files copied to.
- Run 'scp -r root@myserver:/root/views/ .'
- This downloaded the files