Skip to content

Instantly share code, notes, and snippets.

View javierojeda94's full-sized avatar
🐉
ki-coding

Javier javierojeda94

🐉
ki-coding
View GitHub Profile
@javierojeda94
javierojeda94 / Dockerfile
Last active April 7, 2019 20:33
Docker config to start using roots/sage
FROM wordpress:5.1-php7.1-apache
RUN apt-get update
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
RUN apt-get install -y nodejs gnupg
RUN npm install -g yarn
@javierojeda94
javierojeda94 / Angular2+ nginx conf
Created December 6, 2018 20:51
This nginx conf file allows a user to refresh the angular app without getting into 404 and without the need to use # routes
location / {
try_files $uri $uri/ /index.html?$query_string;
}
@javierojeda94
javierojeda94 / Angular2+ .htaccess
Last active December 6, 2018 20:52
This .htaccess allows a user to refresh the angular app without getting into 404 and without the need to use # routes
<IfModule mod_rewrite.c>
RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html
# to allow html5 state links