By dowsoninc
Hi there, I am currently using the DigitalOcean API to generate sites automatically.
I am generating the site, hooking the domains up etc so I can access the site. When I do access the site I get:
Please log into your droplet via SSH to enable your WordPress installation.
As the sites are being created pragmatically is there anyway I can get around this using the DigitalOcean API?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If you can implement the API, why not implement SSH and execute the commands necessary?
You may want to look at doctl as it can run locally (I use it on my Macbook Pro) and it can connect via SSH.
https://github.com/digitalocean/doctl
I don’t run automation from my MBP right now, though if I were to do so, that’s probably what I’d use. You could wrap a bash script around it to simplify it further (i.e. reduce down common commands).
You could do one of the following which have Wordpress Deployment and quick builds of servers:
https://serverpilot.io/a/9f5b39f72604 (Referral link for me) https://runcloud.io
Both are pretty easy and straight forward, you could do a full WP deployment via their API on ServerPilot, you just would need to call DO to create the Droplet, then ping Serverpilot for the install - some options if nothing else, may not fit, but something to look at/consider.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.