Development to Production in less than 5 minutes

Gaurav Mehla
Sep 19, 2017 · 6 min read
Image for post
Image for post

Introduction

Image for post
Image for post
Courtesy from DigitalOcean

Prerequisites

Spinning up our server

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Instead of XX.XXX you will see your IP address here

Configuring Dokku

Image for post
Image for post

Congratulations!, If you reached here, you are doing very well.👍

🔱 Final Touch

Image for post
Image for post
git push dokku master
-----> Running post-deploy
=====> renaming container (56afae26699c) upbeat_jackson to myapp.web.1
=====> no global VHOST set. disabling vhost support
-----> Unsetting myapp
-----> Unsetting DOKKU_NGINX_PORT
-----> Unsetting DOKKU_NGINX_SSL_PORT
-----> Unsetting DOKKU_PROXY_PORT_MAP
-----> Setting config vars
NO_VHOST: 1
-----> no nginx port set. setting to random open high port
-----> Setting config vars
DOKKU_NGINX_PORT: 17518
-----> Setting config vars
DOKKU_PROXY_PORT_MAP: http:17518:5000
-----> Creating http nginx.conf
-----> Running nginx-pre-reload
Reloading nginx
-----> Setting config vars
DOKKU_APP_RESTORE: 1
-----> Attempting to run scripts.dokku.postdeploy from app.json (if defined)
=====> Application deployed:
http://139.59.XX.XXX:XXXXX
To 139.59.XX.XXX:myapp
* [new branch] master -> master

🎥 In Case, Here is the video

Conclusion


_devblogs

Stories for Full-Stack Web developers which help them in…

Gaurav Mehla

Written by

Software engineer & Web hacker. Spent 30+% of life on playing with JS

_devblogs

_devblogs

Stories for Full-Stack Web developers which help them in pursuing their goals as a developer, mastering the modern web technologies and *hacking the web.

Gaurav Mehla

Written by

Software engineer & Web hacker. Spent 30+% of life on playing with JS

_devblogs

_devblogs

Stories for Full-Stack Web developers which help them in pursuing their goals as a developer, mastering the modern web technologies and *hacking the web.