Skip to content

Instantly share code, notes, and snippets.

View jppcel's full-sized avatar

João Paulo Polles jppcel

  • Marechal Cândido Rondon/PR
View GitHub Profile
@julianpoemp
julianpoemp / .angular-htaccess.md
Last active August 8, 2024 09:32
Optimal .htaccess configuration for Angular 15, Angular 14, Angular 13, Angular 12, Angular 11, Angular 10, Angular 9, Angular 8, Angular 7, Angular 6, Angular 5 (and older) app in production incl. fix for the angular browser caching issue.

New generator

I created a new htaccess generator for angular apps that makes it easier for you to create the optimal htaccess file: https://julianpoemp.github.io/ngx-htaccess-generator/

The goal of this generator is to create the optimal .htaccess file for Angular apps easily. By default the generator creates an .htaccess file that solves the route redirection issue. To make it easier for you I created a kind of interview mode with some questions. As an additional feature the generator supports adding exclusions for example if you have installed a blog in a subdirectory of your web application and more!

The generator 😁: https://julianpoemp.github.io/ngx-htaccess-generator/

The project: https://github.com/julianpoemp/ngx-htaccess-generator

@valkzer
valkzer / Supervisor installation on Fedora 23.md
Last active January 16, 2025 17:10
Quick installation and configuration of supervisor on Fedora 23.

#Supervisor Installation on fedora 23

  • dnf install supervisor

  • echo_supervisord_conf > /etc/supervisord.conf

  • nano /etc/supervisord.conf

  • Add the following to the conf. file (THIS IS JUST A TEMPLATE)

      [program:laravel-worker]
      process_name=%(program_name)s_%(process_num)02d
    

command=php /vhosts/myapp/artisan queue:work --queue=birthday_email --sleep=3 --tries=3 --daemon