Home

Stuff James learns, mostly coding

Next up: learn what kind of message I can put here to persuade you to start your own site, sharing the things you learn.

Dokku commands: Heroku like deployment with support for docker

Initial setup Use digital ocean image with Dokku pre-installed, set up ssh key through web. apt update && apt full-upgrade to update packages. dokku apps:create myapp.somedomain.com and add git remote add dokku dokku@DOKKU_HOSTNAME:myapp.somedomain.com I used /etc/hosts to access the image from a hostname instead of IP. More detailed setup in the various deploy with dokkuContinue reading “Dokku commands: Heroku like deployment with support for docker”

Refresher on centring with css flex

display: flex for the main container justify-content and align-items to center vh and vw units are percentage points of the viewport. To have an element take half the screen width use max-width: 50vh. Can set body to height: 100% and margin: 0. Can also use vh units.

Ubuntu apt update vs upgrade vs dist-upgrade vs do-release-upgrade

apt update – gets an up to date list of packages that can be installed or updated apt upgrade – updates packages it can, but never removes packages apt full-upgrade – updates packages more aggressively, removing packages that block other updates apt-get dist-upgrade an old name for full-upgrade do-release-upgrade upgrades to the latest operating systemContinue reading “Ubuntu apt update vs upgrade vs dist-upgrade vs do-release-upgrade”

Links: Deploy a Rails app with Docker and Dokku

Below are links I had open while learning how to use docker-compose with Rails, and using Dokku for deployments. Dockerize Rails https://semaphoreci.com/community/tutorials/dockerizing-a-ruby-on-rails-application https://thoughtbot.com/blog/rails-on-docker https://www.linode.com/docs/applications/containers/docker-container-communication/ https://docs.docker.com/compose/rails/ Set up CI/CD https://gist.github.com/lucaspiller/d5bf6ea1c06b4dbaad98f97372319324 https://gitlab.com/guided-explorations/containers/kaniko-docker-build/-/blob/master/.gitlab-ci.yml https://docs.gitlab.com/ee/ci/docker/using_kaniko.html Deploy https://medium.com/@rokerkony/how-to-set-your-vps-with-docker-containers-for-multiple-websites-55524e59cae1 https://auth0.com/blog/hosting-applications-using-digitalocean-and-dokku/ http://dokku.viewdocs.io/dokku/getting-started/installation/ http://dokku.viewdocs.io/dokku/deployment/application-deployment/ http://dokku.viewdocs.io/dokku/getting-started/install/digitalocean/ https://blog.ssdnodes.com/blog/getting-started-docker-vps/ https://docs.docker.com/compose/production/ https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

How to create App badges

Google Find the app on the Play Store in a web browserE.g. The URL for the WordPress App is https://play.google.com/store/apps/details?id=org.wordpress.android Enter the URL into Google’s Badge Maker Apple Find the app either by searching Apple’s website or through a search engine. E.g. The URL for the WordPress App can be found at https://apps.apple.com/gb/app/wordpress/id335703880 Use Apple’sContinue reading “How to create App badges”

More Posts

Get new content delivered directly to your inbox.