Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gitpod] Starting and stopping apache and php dev server #13

Closed
apolopena opened this issue Feb 1, 2021 · 1 comment
Closed

[gitpod] Starting and stopping apache and php dev server #13

apolopena opened this issue Feb 1, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request gitpod-config Related to gitpod configuration (bash scripts etc...) passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main

Comments

@apolopena
Copy link
Owner

apolopena commented Feb 1, 2021

Problem this feature will solve

Starting and stopping apache is hassle. Commands are a too long to type and memorize when swapping between web servers. Also its not clear when the apache server is stopped because the multitail that was spawned for it does not close.

Background

The user may need to swap between webservers (php built-in webserver, apache2 etc.). These webservers may also need to be run in parallel or all stopped at once.

Proposed Solution

Add an functions in .bashrc from `.gitpod.Dockerfile

  1. Start apache2 with multitail for apache2 log and error log
  2. Stop apache2 and the multitail that was spawned for it.
  3. Start the PHP dev server
  4. Stop the PHP dev server

Constraints and Assumptions

Add functions to .bashrc from `.gitpod.Dockerfile

Alternatives or Workarounds

None worth mentioning

Additional context

This will setup a new system of writing functions to .bashrc from the bash/snippets/ directory

@apolopena apolopena added enhancement New feature or request gitpod-config Related to gitpod configuration (bash scripts etc...) labels Feb 1, 2021
apolopena added a commit that referenced this issue Feb 1, 2021
apolopena added a commit that referenced this issue Feb 1, 2021
apolopena added a commit that referenced this issue Feb 1, 2021
apolopena added a commit that referenced this issue Feb 1, 2021
apolopena added a commit that referenced this issue Feb 1, 2021
@apolopena apolopena changed the title [gitpod] Alias for starting and stopping apache2 and php dev server [gitpod] Starting and stopping apache2 and php dev server Feb 1, 2021
@apolopena apolopena changed the title [gitpod] Starting and stopping apache2 and php dev server [gitpod] Starting and stopping apache and php dev server Feb 1, 2021
apolopena added a commit that referenced this issue Feb 1, 2021
@apolopena
Copy link
Owner Author

Done: tested in development branch.

@apolopena apolopena added the passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main label Feb 2, 2021
apolopena added a commit that referenced this issue Feb 2, 2021
@apolopena apolopena self-assigned this Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gitpod-config Related to gitpod configuration (bash scripts etc...) passed-dev-qa Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Projects
None yet
Development

No branches or pull requests

1 participant