Skip to content

Instantly share code, notes, and snippets.

@ivanxuu
ivanxuu / phoenix.chuleta.md
Created November 21, 2017 17:27
Chuleta phoenix

ASSETS

Como añadir una librería de JS a phoenix?

  1. Instala la dependencia con assets/$ npm install --save jquery

  2. El fichero package.json se actualizará

  3. Puede que necesites cambiar el fichero brunch-config.js. Por ejemplo con jQuery si necesitas el $ disponible en todos los sitios

    npm: { enabled: true,

@ivanxuu
ivanxuu / Vagrantfile
Created January 5, 2018 17:01
Deploy elixir cluster using vagrant as an example
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@ivanxuu
ivanxuu / docker_prestashop_1.7.md
Created July 23, 2019 06:48
Chuleta prestashop 1.7 generar docker
$ sudo docker network create old-prestashop-tier
$ sudo docker volume create --name old_mariadb_data
$ sudo docker run -d --name oldmariadb \
-e ALLOW_EMPTY_PASSWORD=yes \
-e MARIADB_USER=bn_prestashop \
-e MARIADB_DATABASE=old_prestashop \
--net old-prestashop-tier \
--volume old_mariadb_data:/oldprestashop \
bitnami/mariadb:latest

$ sudo docker volume create --name old_prestashop_data