Skip to content

Instantly share code, notes, and snippets.

View leeuwd's full-sized avatar
😀

Dick de Leeuw leeuwd

😀
View GitHub Profile
@leeuwd
leeuwd / deployer-config-akeneo.php
Last active November 8, 2022 11:57
Deployer configuration Akeneo PIM. Assumes .env file in project root.
<?php
namespace Deployer;
require 'recipe/symfony3.php';
require 'recipe/yarn.php';
// Load .env
$dotenv = new \Symfony\Component\Dotenv\Dotenv();
$dotenv->load(__DIR__ . '/.env');
@leeuwd
leeuwd / setup-ubuntu-akeneo-pim.md
Last active May 21, 2024 17:29
How to setup an Ubuntu server (i.e. DigitalOcean LAMP stack droplet) Akeneo PIM server.

How to setup the Akeneo server

# date: january 2018
# author: Dick de Leeuw ([email protected], @leeuwd)
# prerequisites: LAMP droplet (>= 8GB RAM)
# environment: Ubuntu 16.04.3 LTS xenial, Apache/2.4.29 (Ubuntu), MySQL 5.7.21 & PHP 7.1

# create droplet
@leeuwd
leeuwd / rails-docker-mysql-template.rb
Created September 12, 2017 09:46
Travelteq Rails MySQL Docker template
generate(:scaffold, "post", "title:string", "body:text")
route "root to: 'posts#index'"
file 'config/database.yml', <<-CODE
default: &default
adapter: mysql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: db