apolopena / gitpod-laravel-starter

Configurable LAMP or LEMP stack starter project powered by Laravel and Gitpod. Supports Laravel 6, 7, and 8. Out of the box support for React, Vue, and Bootstrap frontends, with or without built-in auth .
https://github.com/apolopena/gitpod-laravel-starter/wiki
MIT License
40 stars 44 forks source link

Support Nginx and php-fpm #89

Closed apolopena closed 3 years ago

apolopena commented 3 years ago

Problem this feature will solve

Nginx server is very popular and Gitpod has it outof the box, however this starter does not support it out of the box.

Background

image

Proposed Solution

Add Nginx into the system which includes:

  1. Aliases to start and stop it
  2. mutitail and tail log monitor option in .starter.ini`
  3. debug on and debug off implmentation
  4. default server and start server functionality
  5. expose port in .gitpod.yml

Constraints and Assumptions

Alternatives or Workarounds

Use it by hand which would require editing `gitpod.yaml' on every new workspace creation, klunky

Additional context

Test it with all features like phpmyadmin

apolopena commented 3 years ago

Requires PHP-FPM which will slow down the workspace image build and add even more complexity to the conditional setup.

apolopena commented 3 years ago

A few apis were added and I will finish with that but until PHP-FPM is implmented, php files will download instead of be displayed when served by nginx

apolopena commented 3 years ago

I got nginx working with php-fpm7.4 and will implement it in this project. It does not slow down the workspace build like I thuoght it would so all good there. Check out a minimal working example here Try it out on on Gitpod.io

apolopena commented 3 years ago

Implmented