A small project I did in spare time :) It should ressemble the old space invaders game, i know it's not perfect but I like it anyway.
Forked from Patrick Stillhart's Pen Space Invaders Game ( 404 ).
A small project I did in spare time :) It should ressemble the old space invaders game, i know it's not perfect but I like it anyway.
Forked from Patrick Stillhart's Pen Space Invaders Game ( 404 ).
I hereby claim:
To claim this, I am signing this object:
Install Supervisor with sudo apt-get install supervisor
. Ensure it's started with sudo service supervisor restart
.
In /etc/supervisord/conf.d/
create a .conf
file. In this example, laravel_queue.conf
(contents below). Give it execute permissions: chmod +x laravel_queue.conf
.
This file points at /usr/local/bin/run_queue.sh
, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh
.
Now update Supervisor with: sudo supervisorctl reread
. And start using those changes with: sudo supervisorctl update
.
Aquí explicaré cómo realizar un deploy automático en servidor (VPS de DigitalOcean). Realizaremos un push primero a github y necesitaremos una conexión ssh para poder jalar automáticamente desde el servidor de deploy. Para comenzar, debemos tener nuestra llave ssh agregada en github, así que seguimos los siguientes pasos (ésto si nunca lo hemos hecho...).
En nuestro equipo, ejecutamos:
ssh-keygen
Con ello generamos una clave ssh en nuestro directorio home
, si ya la tenemos la terminal les preguntará si quieren sobre-escribir la llave. Elegimos según corresponda (nota, si ya está generada, tener en cuenta si se ha usado con otros servidores o para otro tipo de autenticación...).
Nos pedirá una passphrase, la cuál no es más que una contraseña segura que deseemos colocarle a nuestra llave privada.
Aquí explicaré cómo automatizar tareas con hooks de git, en éste caso específico, después de hacer commit.
Como ejemplo, se realizará un push automático al remoto cuando se realice un commit.
En nuestro projecto git, accedemos a la carpeta oculta .git
cd .git
luego accedemos a hooks:
/* iPhone 6 landscape */ | |
@media only screen and (min-device-width: 375px) | |
and (max-device-width: 667px) | |
and (orientation: landscape) | |
and (-webkit-min-device-pixel-ratio: 2) | |
{ } | |
/* iPhone 6 portrait */ | |
@media only screen | |
and (min-device-width: 375px) |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
class User < ActiveRecord::Base | |
devise :invitable, :database_authenticatable, :registerable, :recoverable, | |
:rememberable, :confirmable, :validatable, :encryptable | |
# ... | |
# devise confirm! method overriden | |
def confirm! | |
welcome_message | |
super |
# Emails are "examples" for security reasons" | |
Sent mail to email@gmail.com (62.7ms) | |
Date: Mon, 03 Aug 2015 04:43:59 +0000 | |
From: postmaster@domain.org | |
To: email@gmail.com | |
Message-ID: <55bef18f8dbf6_33ff4eacb9e9476ed@268869cd-5732-4ba4-ade9-c53f70250a53.mail> | |
Subject: Success! You did it. | |
Mime-Version: 1.0 | |
Content-Type: text/plain; |