yarn add redux react-redux redux-saga reduxsauce redux-devtools-extension axios
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.btn { | |
will-change: transform; | |
border-radius: 3px; | |
transition: all .1s ease-in-out; | |
height: 29px; | |
padding: 8px 32px; |
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.
Welcome | |
#Deplyoing to Production | |
## Deployment using dokku (docker manager) | |
*The current way of setting up the server requires knowledge with following:* | |
- *Git* | |
- *docker* |
- Create an Ubuntu Server 14.04 LTS Instance (I typically use "Spot Requests" for machines which do not need to stay alive for a long time)
- Configure Security Groups (inbound rules): All Traffic - All - All - 0.0.0.0/0; SSH - TCP - 22 - 0.0.0.0/0
- Launch instance
- Connect to the instance via PuTTY
- Host Name:
ubuntu@<The Public DNS (see description of the instance)>
- Connection -> SSH -> Auth -> Authentification parameters -> Select the *.ppk key pair file
- Open Connection & accept fingerprint
- Install Dokku (source: http://dokku.viewdocs.io/dokku/installation/)
wget https://raw.githubusercontent.com/dokku/dokku/v0.4.13/bootstrap.sh
sudo DOKKU_TAG=v0.4.13 bash bootstrap.sh
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.
- Login to your Digital Ocean account
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:
- Choose an image - Dokku 0.7.2 on 16.04
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
Custom recipe to get full Node.js Cloud Environment in DigitalOcean Dokku droplet running from scratch. Yes. Your own Heroku for $5 per month.
I use this gist to keep track of the important configuration steps required to have a functioning system after fresh install.
When you have executed that's all step by step you will get a new working and stable system which is ready to host & serve your Node.js application and databases.
root = true | |
[*] | |
end_of_line = lf | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |