-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add NodeJS server as an alternative to PHP #136
base: master
Are you sure you want to change the base?
Conversation
This adds: - Two entries in the manifest: - A choice for the NodeJS version - A port (provisionned in any case due to ynh limitations, but this should not matter) - Services and configs: - Systemctl configs to run the NodeJS server - A watcher service and path to restart NodeJS upon file update - A custom NGinx config because it is incompatible with the default one - Docs: - More info in the description and admin The install/remove/backup/restore have been adapted and tested. The upgrade script is updated but not tested The change_url script does not change It is not possible to have both PHP and NodeJS to keep the scripts simple.
!testme |
!testme |
This sounds cool but i don't know what to think about this ... This raises the question of what really is the scope of this app. Somebody could also add support for Python, Ruby or whatever and we end up in Feature creep hell To me the support for PHP+SQL db should already justify splitting the half in two apps, once for pure static hosting (possibly with Git actions in the config panel) and the other one for PHP(+SQL). There's also the Flask app, which is somewhat similar but for Python ... Imho we should really discuss wether we want a single my_webapp that fits every use case, or several "my__webapp" that are skeletons that are design for specific technologies |
Hi! Thanks for answering so quickly |
Problem
I wanted to have an app similar to my_webapp but with nodejs instead of PHP.
After hesitating to create a new app, I decided it was better to improve this one instead.
Solution
For this, I added, with the help of @oiseauroch:
The install/remove/backup/restore have been adapted and tested.
The upgrade script is updated but not tested
The change_url script does not change
It is not possible to have both PHP and NodeJS to keep the scripts simple.
PR Status
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)