- Ustvarim droplet
- Po prvi prijavi dodam v
nano /etc/default/locale
LANG=en_US.UTF-8
LANGUAGE=English
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
apt-get update
(glej http://tylerkern.com/ruby-on-rails-and-postgres-on-dokku-and-ubuntu-14-04/)apt-get upgrade
apt-get install libpq-dev
- Nato 2x (nek ubuntu 14 problem)
wget -qO- https://raw.github.com/progrium/dokku/v0.3.5/bootstrap.sh | sudo DOKKU_TAG=v0.3.5 bash
- Nato
cd /var/lib/dokku/plugins
git clone https://github.com/ohardy/dokku-psql psql
dokku plugins-install
- Odjavi se iz serverja in pozeni
cat ~/.ssh/id_rsa_emazing_test.pub | ssh app.emazing.si "sudo sshcommand acl-add dokku progrium"
- Preveri ali lahko uporabis
ssh [email protected]
- V rails projektu pozeni
git remote add emazing [email protected]:crm
. - Pushaj spremembe
git push emazing master
. - Dodaj swap, ce javi spodnjo napako. Sledi
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
remote: runtime: panic before malloc heap initialized
remote: fatal error: runtime: cannot allocate heap metadata
- Ponovno pushaj
git push emazing master
. - Če javi napako, potem
! Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/bundler-1.5.2.tgz -s -o - | tar zxf -' failed unexpectedly:
!
! gzip: stdin: unexpected end of file
! tar: Child returned status 1
! tar: Error is not recoverable: exiting now
cd /var/lib/dokku/plugins
git clone https://github.com/heichblatt/dokku-debug.git debug
nato v macu izvedi ssh [email protected] debug