Skip to content

Instantly share code, notes, and snippets.

@markusdosch
Last active January 10, 2018 15:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markusdosch/1d2b9f1780fd1b890be5 to your computer and use it in GitHub Desktop.
Save markusdosch/1d2b9f1780fd1b890be5 to your computer and use it in GitHub Desktop.
Install Dokku on Scaleway VPS

Prerequisites: Scaleway VPS is set up with the default settings, you are connected to it via SSH (e.g. via PuTTY).

  1. wget https://raw.githubusercontent.com/dokku/dokku/v0.4.14/bootstrap.sh
  2. Add the following entry to /etc/hosts: 127.0.0.1 <SERVER_NAME and comment out (#) 127.0.1.1 server and 127.0.0.1 localhost server
  3. sudo DOKKU_TAG=v0.4.14 bash bootstrap.sh. This will fail (this is expected)
  4. sudo reboot
  5. Do 3. again
  6. In your web browser, navigate to <PUBLIC_IP> or <PUBLIC_DNS> to finish dokku setup.
  • I set as hostname: <PUBLIC_DNS>
  • I activate the Virtualhost Naming
  1. FINISHED! You can read http://dokku.viewdocs.io/dokku/application-deployment/ on how to deploy apps to your dokku PaaS.
@markusdosch
Copy link
Author

Adding a dokku application:

  1. dokku apps:create sample-app
  2. Create a new subdomain on the domain partner website and set A-Name of this subdomain to the VPS IP
  3. (maybe not needed) Add the subdomain to the app's config with dokku domains:add sample-app sample.subdomain.com
  4. Upload the app code via git to dokku: git remote add dokku dokku@<PUBLIC DNS>:sample-app and git push dokku master

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