-
-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Digital Ocean (Ubuntu 16.04) node/tools publish deployment fails #44
Comments
@gpolyn as a side note, I think it's better first to compile a docker image before pushing it to a DigitalOcean droplet or Docker repository. Otherwise, while your app is compiling, your server may become less responsive. Take a look at |
@koistya I see: deployment is meant to occur from local or master machine, which is why the ssh stuff matters. So then, my path is to configure the remote server such that I can 1) ssh into it using some preferred hostname and 2) run deploy locally and expect deployment to occur. Will check out. |
Regarding #1, when you provision a new VM/droplet, it usually comes with SSH access pre-configured. You would just need to tweak your local SSH client config, e.g. you can put your SSH settings in ~/.ssh/config and use just server's name/alias when you need to connect, e.g. |
@koistya per your guidance, I've corrected my approach, but I still fail in my effort.
I include the full log farther below, but here I highlight the critical error:
Seems like we are to have prepared the volume mounts on the remote server side (somedroplet), but is that correct? For example, in an earlier attempt, I encountered an error associated with the
|
@gpolyn the configuration files, e.g. |
@koistya this info was helpful, but running into Any thoughts? |
I confirm that a toy docker-compose application can be deployed to a new Ubuntu 16.04 droplet by installing docker-compose deps and executing the steps at how-to-install-wordpress-and-phpmyadmin-with-docker-compose-on-ubuntu-14-04.
Install Node LTS (6.11) on 16.04 droplet.
Attempt to recover the hostname
cat /etc/hostname
(no~/.ssh/config
found).Following Deployment, execute
node tools/publish <host>
using name from 3).Get different errors, for example, the following:
Permission denied (publickey)
So, seems to turn on a remote server configuration issue, namely,
~/.ssh/config
. I grant that this is somewhat a side-issue, but any comment in a reply to this issue would be appreciated.Separately, on the same droplet as above
docker-compose up
hangs for a while and then reports an error:Edit: Alternatively, confirm which remote server deploy scenario has succeeded, for example, AWS, which we can take as a default approach.
The text was updated successfully, but these errors were encountered: