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 
| var regex = /Find this text string/, | |
| replacement = 'Replace with this string'; | |
| function replaceText(i,el) { | |
| if (el.nodeType === 3) { | |
| if (regex.test(el.data)) { | |
| el.data = el.data.replace(regex, replacement); | |
| } | |
| } else { | |
| $(el).contents().each( replaceText ); | |
| } | 
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
I created question on StackOverflow
When trying to start Node.js app hosted on Heroku with MongoLab addons, I got following error on heroku logs when connecting to MongoDB.
My entire vode is here: https://github.com/yhagio/meetup_planner
Heroku logs
| #! /bin/bash | |
| # For use with Flink/dokku-psql-single-container. | |
| # Based on http://donpottinger.net/blog/2014/11/25/postgres-backups-with-dokku.html | |
| set -e | |
| BASE_DIR="/var/backups/postgres" | |
| mkdir -p $BASE_DIR | |
| YMD=$(date "+%Y-%m-%d") | 
My notes for Dokku on Digital Ocean.
Install dokku-cli (gem install dokku-cli) for a more Heroku-like CLI experience (dokku config:set FOO=bar).
# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
ssh henroku dokku config:get my-app
| cache: | |
| mount: | |
| - wheeldir | |
| build: | |
| image: python:2.7.11 | |
| commands: | |
| - pip wheel -r requirements.txt --wheel-dir=wheeldir --find-links=wheeldir | |
| - pip install --use-wheel --no-index --find-links=wheeldir -r requirements.txt | |
| - nosetests -v test/ | 
See https://rvm.io/rvm/install/
curl -L get.rvm.io | bash -s stable
On OS X you can use RailsInstaller which will bring all dependencies for you: installer: https://github.com/railsinstaller/railsinstaller-nix/downloads background: http://www.engineyard.com/blog/2012/railsinstaller-for-os-x/
| ########################################## | |
| # To run: | |
| # curl -sSL https://gist.githubusercontent.com/sethbergman/955f6ad392fff733a62c/raw/41c229998634df722cefdd589da121af624bf2ce/Install-Docker-on-Linux-Mint.sh | bash -x | |
| ########################################## | |
| # Check that HTTPS transport is available to APT | |
| if [ ! -e /usr/lib/apt/methods/https ]; then | |
| sudo apt-get update | |
| sudo apt-get install -y apt-transport-https | |
| fi | 
| # Check that HTTPS transport is available to APT | |
| if [ ! -e /usr/lib/apt/methods/https ]; then | |
| sudo apt-get update | |
| sudo apt-get install -y apt-transport-https | |
| fi | |
| # Add the repository to your APT sources | |
| sudo echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list | |
| # Then import the repository key | 
| .. _yaml_examples: | |
| ========= | |
| Cloud config examples | |
| ========= | |
| Including users and groups | |
| --------------------------- | |
| .. literalinclude:: ../../examples/cloud-config-user-groups.txt |