Dokku Installation

, , 271 Comments

Server Installation and Preparation

  1. create a Ubuntu Server 16.04 in AWS and login to the system
  2. sudo apt-get update
  3. sudo apt-get upgrade
  4. sudo apt-get dist-upgrade
  5. sudo vi /etc/hosts
  6. 127.0.0.1 localhost dok
  7. sudo vi /etc/hostname
  8. dok
  9. sudo reboot
  10. Postgres Installation

  11. sudo vi /etc/apt/sources.list.d/pgdg.list
  12. deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
  13. wget –quiet -O – https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add
  14. sudo apt-get update
  15. sudo apt-get install postgresql-server-dev-9.6
  16. Dokku Installation

  17. wget https://raw.githubusercontent.com/dokku/dokku/v0.7.2/bootstrap.sh;sudo DOKKU_TAG=v0.7.2 bash bootstrap.sh
  18. Install PIP

  19. sudo apt-get install python3-pip
  20. pip3 install  –upgrade pip
  21. pip3 install virtualenv
  22. Create Django App

  23. mkdir hellodjango && cd hellodjango
  24. virtualenv venv
  25. source venv/bin/activate
  26. pip install django-toolbelt
  27. django-admin.py startproject hellodjango
  28. echo “web: gunicorn hellodjango.wsgi” > Procfile
  29. pip freeze > requirements.txt
  30. echo “venv” > .gitignore
  31. Setup Git

  32. git config –global user.email “xxx@somedomain.net
  33. git config –global user.name “someuser”
  34. git init
  35. git add .
  36. git commit -m “First Commit HelloDjango”
  37. Upload Public Key for User

  38. ssh-keygen -t rsa
  39. cat ~/.ssh/id_rsa.pub  >> ~/.ssh/authorized_keys
  40. cat ~/.ssh/id_rsa.pub | ssh ubuntu@52.52.212.236 “sudo sshcommand acl-add dokku hellodjango”
  41. SHA256:yw60f5u5hXrWNfYG8KK+sbC1VihEIHVgsTINN2sVf1s

    Add Remote

  42. git remote add production ubuntu@52.52.212.236:hellodjango
  43. Edit Django Settings for Collectstatic Error

  44. vi hellodjango/settings.py
  45. ALLOWED_HOSTS = ['52.52.210.250']
    STATIC_URL = '/static/'
    STATIC_ROOT = os.path.join(BASE_DIR, 'static')
    
    # Extra places for collectstatic to find static files.
    
    STATICFILES_DIRS = (
    
    )

    Git Commit Changes

  46. git commit -m “Correct settings.py”
  47. git push master production
 

271 Responses

  1. เว็บแทงบอล

    July 17, 2020 2:39 pm

    To get personal with your Casino and Siri, try teaching Siri your family’s names. For instance, you can teach Siri your spouse’s name. Then instead of speaking out your spouse’s full name when you want to call him or her, you can say instead “Call my husband” or “Call my wife.” It’s much more personable!

  2. สล๊อต

    July 18, 2020 6:53 am

    If Autocorrect wants you to choose a certain word and you don’t want to choose that word, you don’t actually have to click the little X. You can tap anywhere else one the screen and the little suggestion will go away! This can be a lot quicker than trying to click the X

  3. Joker Online

    July 19, 2020 1:38 am

    Do you want to extend your battery life? There are a few different things you can do to get the most out of your battery life. One thing you can do is turn down the brightness. Also, turn off any wireless radios when you are not using them. This can give you more battery life.

  4. נערות ליווי

    July 19, 2020 4:20 am

    Are you currently searching for escort girls in Tel Aviv ?18escortgirls can make you
    Want to invest quality young escort girls in your house
    or hotel? Looking for Russian escorts, Ethiopian escorts or VIP escorts?

    Looking for escort services in Tel Aviv with the great method of getting 18escortgirls Index can fulfill all your
    fantasies discreetly.

  5. การพนันออนไลน์

    July 19, 2020 8:17 am

    หากท่านเป็นผู้ที่หลงใหลในคาสิโนออนไลน์ บาคาร่าออนไลน์ สล็อตออนไลน์ และชื่นชอบเว็บพนันออนไลน์ ถือว่าท่านมาถูกทางแล้วเพราะ สล็อตออนไลน์

  6. Joker

    July 20, 2020 8:12 am

    If visitors don’t feel that your posts are helping them in any manner, then they probably won’t stick around very long.

  7. เวกัส

    July 20, 2020 1:22 pm

    There are dozens of different ways to improve your website with internet marketing techniques, and here we’ve outlined just a few of them.

  8. บาคาร่า

    July 22, 2020 3:02 am

    นั้นเป็นเว็บคาสิโนออนไลน์ที่ได้รับความนิยมมากที่สุดในเอเชีย สล็อตออนไลน์ มีการออกแบบมาเพื่อรวบรวมเกมส์ยอดฮิตเอาไว้ที่นี่ที่เดียวอย่างครบครัน ประกอบไปด้วยคาสิโนออนไลน์

  9. สล็อต

    July 22, 2020 3:13 pm

    แทงบอลสดออนไลน์ เล่นสดบนมือถือ สะดวกสบายรวดเร็วที่สุด แทงบอลสดออนไลน์ เล่นสดบนมือถือ สะดวกสบายรวดเร็วที่สุด

  10. แทงบอล

    July 24, 2020 9:03 am

    Disabling the comments will make users think that you do not care about their opinions and they will be less likely to visit your site again in the future.

  11. Joker

    July 24, 2020 7:19 pm

    If you jumble everything together, trying to get the most material you can get on one page, readers will become overwhelmed.

  12. cialis tablets

    July 25, 2020 4:32 am

    I’m curious to find out what blog platform you have been utilizing?
    I’m having some small security problems with my latest blog and I’d like
    to find something more safeguarded. Do you have any suggestions?

  13. נערת ליווי

    July 25, 2020 9:50 pm

    Have you been searching for escort girls in Tel Aviv ?18escortgirls
    can make you Want to invest quality young escort girls at home or hotel?
    Looking for Russian escorts, Ethiopian escorts or VIP escorts?

    Searching for escort services in Tel Aviv with the
    great supply of 18escortgirls Index can fulfill your entire fantasies discreetly.

  14. Joker

    July 26, 2020 6:38 am

    This article will outline all the different strategies you should be aware of when it comes to soccer.

  15. เว็บแทงบอล

    July 26, 2020 1:08 pm

    One way to engage Happy New Casino Casino blog readers is to add a poll to Happy New Casino Casino blog. This feature is commonly available on most blogging platforms and allows Happy New Casino AllForBet to ask for input from Happy New Casino Casino readers. Happy New Casino AllForBet could ask what they want to see more of or less of and use the poll results to fine-tune Happy New Casino Casino blog. So, add a poll and get to know Happy New Casino Casino audience better.

  16. เกมคาสิโน

    July 26, 2020 7:54 pm

    I wadd just looking for it info for come time. After 6 hours of cintinuous Googleing, finally I got it in Vegus website. I winder what’s the lack of Google strategy that do not rank it type of informative web sites in top of the list. Normally the top web sites are full of garbage.

  17. Slot Joker

    July 26, 2020 9:12 pm

    You will increase your customers and readers of your blog when you have smart backlinks; that will boost your search engine rank.

  18. Joker Online

    July 27, 2020 9:36 pm

    You should spend the entire game following the ball back and forth and always trying to be in an ideal spot to receive the ball.

  19. แทงบอลออนไลน์

    July 28, 2020 5:47 am

    จริยธรรม และค่านิยมอันพึงประสงค์ รู้จักรักษาและป้องกันตนเอง ให้พ้นจากอันตรายและอบายมุข มุ่งทำประโยชน์และสิ่งที่ดีงามให้แก่สังคม

  20. The Baked Cat

    July 28, 2020 10:51 am

    When Ι initially commented I clicked tһе “Notify me when new comments are added” checkbox ɑnd now each tіme a comment is aԀded I
    get several e-mails witһ The Baked Cat samе
    ϲomment. Is there any way you can remove people fr᧐m
    that service? Tһanks a l᧐t!

  21. Vegus168

    July 28, 2020 9:40 pm

    Keep a healthy immune system by giving your body the proper nutrients, and protect yourself with proper hygiene.

  22. LigaZ

    July 28, 2020 11:21 pm

    It is a good idea to keep Happy New Casino Casino blog fresh with a steady stream of unique, interesting content. Search engines favor such sites. The more people that successfully make their way to Happy New Casino Casino site, the more visitors Happy New Casino AllForBet will have actually reading Happy New Casino Casino content. Keeping this in mind will help Happy New Casino AllForBet to boost Happy New Casino Casino traffic levels.

  23. Vegus168

    July 29, 2020 11:49 am

    By learning how to shoot using different techniques, you can be ready to make the shot even if the ball is in mid-air.

  24. เว็บดูบอลฟรี

    July 29, 2020 7:22 pm

    For those who interact often on social-networking sites, the Casino makes it easy to stay up to speed with them. It is simple to comment, download photos and connect with your friends. Many college students find having an Casino is a convenient way to stay connected to the internet away from home.

  25. ฟรีเคดิต

    July 30, 2020 10:42 am

    Turn off push notifications to control your data usage as well as preserve your battery life. Push notifications allow your phone to constantly be in touch with email servers and the internet in order to be notified immediately when something happens. De activating this will mean that you have to check your email, websites or other applications for new messages and alerts, but it will be dramatic in how it affects the functionality and performance of your phone.

  26. บอลสด

    July 30, 2020 12:27 pm

    If you happen to lose your Casino, finding it is very simple. Once you realize the phone is missing, use the “Find my Casino” feature to find it on a map and to secure the data you have stored. You can even have a message pop up on the phone’s screen!

  27. Joker

    July 30, 2020 12:49 pm

    It is a good idea to keep the amount of ads on Happy New Casino Casino site to a minimum. Many amateur bloggers make the mistake of being so concerned about revenue that they load their site with all types of ads. This is likely to scare off potential customers because most people do not like excessive ads.

  28. ดูบอล

    July 30, 2020 5:02 pm

    A great tip if you’re new to owning an Casino is not to store too much personal information on your phone. If by accident, your phone is lost or even stolen, someone can easily go through it, and access all of your sensitive information. It’s a good idea to keep this in mind.

  29. https://visual.ly

    July 30, 2020 6:41 pm

    great issues altogether, you jᥙѕt won a emblem neᴡ reader.
    Ꮤhat could you ѕuggest in regаrds tо y᧐ur publish thаt yߋu made ɑ few Ԁays ago?
    Any cеrtain?

    Feel free to visit mү web blog: krunker hacks (https://visual.ly)

  30. Joker

    July 31, 2020 4:06 pm

    An easy way to come up with new blog content when you are having writer’s block is to look back through old posts.

  31. Joker

    July 31, 2020 5:35 pm

    You should spend the entire game following the ball back and forth and always trying to be in an ideal spot to receive the ball.

  32. ดูบอลฟรี

    August 1, 2020 10:35 am

    น.พ. สุรศักดิ์ ประเทืองธรรม พ.บ., ว.ว. กุมารเวชศาสตร์ American Board of Pediatrics American Board of Pediatric Infectious Diseases.

  33. ลิ้งดูบอล

    August 1, 2020 12:47 pm

    ซึ่งมีประสบการณ์ทุกท่าน สำหรับชั้นประถมศึกษามีการเรียนการสอน 3 ภาษา นักเรียนได้เรียนภาษาอังกฤษกับครูต่างชาติทุกวัน เรียน Conversation กับครู native สัปดาห์ละ 2 ครั้ง

  34. free lesbian teen hd

    August 1, 2020 3:31 pm

    I simply couldn’t depart your web site before suggesting that I extremely loved the standard information a person supply on your visitors?
    Is going to be again incessantly to check up on new posts

  35. พนันออนไลน์

    August 1, 2020 5:23 pm

    นั้นเป็นเว็บคาสิโนออนไลน์ที่ได้รับความนิยมมากที่สุดในเอเชีย สล็อตออนไลน์ มีการออกแบบมาเพื่อรวบรวมเกมส์ยอดฮิตเอาไว้ที่นี่ที่เดียวอย่างครบครัน ประกอบไปด้วยคาสิโนออนไลน์

  36. free lesbian teen hd

    August 1, 2020 5:41 pm

    Howdy! This is my first comment here so I just wanted to
    give a quick shout out and tell you I genuinely enjoy reading through your posts.
    Can you recommend any other blogs/websites/forums that cover
    the same topics? Thank you!

  37. Sa

    August 1, 2020 8:31 pm

    Once you get that done, just start sharing content! Remember the tips in this article, if you to run a successful blog.Sound Tips To Be A Better Soccer Player

  38. แทงบอลออนไลน์

    August 1, 2020 10:15 pm

    ซึ่งผู้เล่นทุกท่านจะได้พบกับเว็บคาสิโนออนไลน์ คาสิโนออนไลน์ ที่กำลังเป็นที่นิยมในกลุ่มนักเดิมพันมากที่สุดในเอเชีย โดยได้รับการยอมรับจากสมาชิกว่าเป็นเว็บไซต์คาสิโนออนไลน์ที่ให้บริการรวดเร็ว

  39. คาสิโนออนไลน์

    August 1, 2020 11:12 pm

    Simplify Happy New Casino Casino blog by avoiding inordinate amounts of multi-media. While pictures and the occasional video are definitely a nice touch, Happy New Casino Casino words are more important than Happy New Casino Casino ability to place obnoxious GIFs or pictures on Happy New Casino Casino blog posts. Happy New Casino Casino readers will appreciate having balance in Happy New Casino Casino posts and enjoying both written word and visual elements.

  40. SAGAMING

    August 2, 2020 6:07 pm

    Create a good blog design. Too many bloggers today build a blog that is far too cluttered and difficult to read. Happy New Casino AllForBet want Happy New Casino Casino blog to be simple and one way Happy New Casino AllForBet can achieve this is by having simplicity in Happy New Casino Casino side bar. Whatever Happy New Casino AllForBet add to Happy New Casino Casino side bar such as a widget or advertisement, Happy New Casino AllForBet should ask Happy New Casino Casinoself if someone would actually click on it. If not, then do away with it.

  41. เว็บดูบอลฟรี

    August 3, 2020 3:42 am

    6.เมื่อตรวจสอบแล้วว่าดำเนินการโอนอย่างสมบูรณ์ ก็รอเวลาให้ทีมงาน คาสิโนออนไลน์ ตรวจสอบความถูกต้องสักพัก และกลับไปเช็คที่บัญชี คาสิโนออนไลน์ อีกครั้ง หากมียอดเงินในระบบ

  42. maxbet bola

    August 4, 2020 7:28 am

    For example, in case a player is injured or carries a disagreement regarding his manager, or a
    trainer has suddenly dumped a certain horse, these items of news can present you
    with the hot tip you should pick a qualified team or horse.
    They also are aware that abdominal muscles worse thing they can possible do would be to attempt to chase and get back what they’ve lost.

    Do some research on his or her schedule, have a look
    at their record, and study through to the players.

    my blog :: maxbet bola

  43. hoover dam

    August 4, 2020 2:08 pm

    There are barrels of various forms of entertainment in and around Vegas aside from the casinos.
    If your game purchase is good for somebody else, particularly any small, make certain that the game’s
    submissions are right for that individual. The views of the Thames during the night are memorable and great to photograph.

  44. business

    August 4, 2020 2:34 pm

    Revit Architecture is the most popularly used software to
    develop Architectural Building Information Model. I am a living evidence
    of this concept, so you should trust me when I explain how this can be a simplest way to advertise your products or services and services.
    The other trick is usually to visit your auction houses and recycled lumber yards and
    tile shops and collect up heaps of random tiles cheaply.

Leave a Reply