Skip to content

Instantly share code, notes, and snippets.

@tomazzlender
Last active August 29, 2015 14:10
Show Gist options
  • Save tomazzlender/cf4fc75dc8ea12e45269 to your computer and use it in GitHub Desktop.
Save tomazzlender/cf4fc75dc8ea12e45269 to your computer and use it in GitHub Desktop.
  • 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
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment