Steps:
-
Create Digital Ocean Droplet with Dokku v0.3.16 on 14.04 image
-
Login into the droplet and Update local settings.
sh -c "echo 'LANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8' > /etc/default/locale" reboot
Steps:
Create Digital Ocean Droplet with Dokku v0.3.16 on 14.04 image
Login into the droplet and Update local settings.
sh -c "echo 'LANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8' > /etc/default/locale"
reboot
Setting up Heroku like deployment is pretty easy. There are lot of reasons why to do this but a big one specifically is cost. Heroku is expensive compared to a $20 DigitalOcean droplet. Of course, learning how to be a system administrator is required but not at all difficult.
In this series of how-to's, we'll be starting off deploying a Ruby on Rails app using a DigitalOcean droplet, Ubuntu, Docker and Dokku all for $5 a month that can easily be scaled to $20 a month (recommended for production apps).
Don't have a DigitalOcean account, create one.
Create a droplet:
Select the One-click Apps tab:
Digital Ocean offers a pre-installed Dokku image. You can run this image on any sized droplet, although larger droplets will allow you to run larger applications.
When choosing your Droplet configuration please disable IPv6. There are known issues with IPv6 on Digital Ocean and Docker, and many have been reported to the Dokku issue tracker. If you would like to run Dokku on an IPv6 Digital Ocean Droplet, please consult this guide.
ubuntu@<The Public DNS (see description of the instance)>
wget https://raw.githubusercontent.com/dokku/dokku/v0.4.13/bootstrap.sh
sudo DOKKU_TAG=v0.4.13 bash bootstrap.sh
Welcome | |
#Deplyoing to Production | |
## Deployment using dokku (docker manager) | |
*The current way of setting up the server requires knowledge with following:* | |
- *Git* | |
- *docker* |
Create the application on the Dokku host. You will need to ssh onto the host to run this command.
# on the Dokku host
dokku apps:create my-app-name
Now you can deploy the my-app-name
app to your Dokku server. All you have to do is add a remote to name the app. Applications are created on-the-fly on the Dokku server.
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.btn { | |
will-change: transform; | |
border-radius: 3px; | |
transition: all .1s ease-in-out; | |
height: 29px; | |
padding: 8px 32px; |