Skip to content

Instantly share code, notes, and snippets.

View martinrisseeuw's full-sized avatar

Martin martinrisseeuw

View GitHub Profile
@martinrisseeuw
martinrisseeuw / deploy.md
Last active August 12, 2022 18:36
Adonis deploy on Dokku

Deploying Adonis5 on Dokku

For the deployment of Adonis we're currently using Dokku(http://dokku.viewdocs.io/dokku/). Dokku is a self-hosted application manager similar to Heroku. Follow the Dokku instructions to setup your server.

Preparing your application

Since our app is using Redis & Postgres I will walk you through the setup for this as well. The first step is to create a Dokku application on your server after finishing the Dokku installation. Our application is called api so we run:

dokku apps:create api
@martinrisseeuw
martinrisseeuw / correct.vue
Last active June 2, 2020 04:35
Mapbox Nuxt component
<template>
<div id="map" class="map">
<div class="button-bar">
<button v-on:click="addMapLayer()">terrain</button>
</div>
</div>
</template>
<script>
@martinrisseeuw
martinrisseeuw / index.html
Last active January 19, 2016 12:41
animated icon
<html>
<head>
<style>
body{
background: #75D084;
}
svg{
width: 20%;
position: absolute;
left: 50%;