Closed wellemut closed 2 years ago
Navid Kalaei, [10.03.21 22:34] oh no, we don't need to setup a new server completely from zero, it's just a node app that can be run beside other applications
Markus Kohlhase, [10.03.21 22:41] @navid_kalaei can you create a Nix Package for your service? Then it should be easy to integrate
Markus Kohlhase, [10.03.21 22:41] https://github.com/svanderburg/node2nix
Markus Kohlhase, [10.03.21 22:42] here you probably can find some upstream examples: https://github.com/NixOS/nixpkgs
Navid Kalaei, [10.03.21 22:49] How it's differentiated from containers?
Navid Kalaei, [10.03.21 22:52] And how I can test that??? Couldn't we setup a GitHub Action to make life easier?
@navid-kalaei If you know NixOS you could build a Package and send it to @flosse . If you feel comftable with, you can also manage the whole NixOS Server by yourself.
But If you prefer a different system, let me know what system we can buy for you. Only limitation: All Servers must be in Germany. So what would be the german alternative to https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&filter=next.js&utm_campaign=create-next-app-readme?
I will by this server: https://www.netcup.eu/bestellen/produkt.php?produkt=2005 @flosse please provide me with our netcup credentials
@dmitrap do you have your own server in the meantime? It would be no problem for us, if you use this server too
that's pretty cool, maybe we'll migrate after 3 month that i still paid for our own server! :)
пт, 3 сент. 2021 г. в 21:17, Helmut Wolman @.***>:
I will by this server: https://www.netcup.eu/bestellen/produkt.php?produkt=2005 @flosse https://github.com/flosse please provide me with our netcup credentials
@dmitrap https://github.com/dmitrap do you have your own server in the meantime? It would be no problem for us, if you use this server too
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kartevonmorgen/kartevonmorgen.ts/issues/2#issuecomment-912656925, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWNU2HG74RAT7Z24CQDPCDUADYK5ANCNFSM4YYDNQWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Which one do we need:
@navid-kalaei Please check if this hosting packets is also working for your frontend: https://www.netcup.eu/hosting/ Markus says, you have much less to maintain if you use this. Just for one Frontend you do not have to provide a whole Server-OS.
Due to our clients needs, to fulfill the IT-Securitiy of the Germany Agency for Security in IT (https://www.bsi.bund.de/DE/Themen/Unternehmen-und-Organisationen/Standards-und-Zertifizierung/IT-Grundschutz/it-grundschutz_node.html) we are not allowed to use netcup.eu but we have to move to https://www.hetzner.com/de/webhosting!
Hetzner is also Green hostet. Netcup seems do be cheaper. Do we need SSH`?
Hetzner offers SSH only for 9,9€/month (https://www.hetzner.com/webhosting/matrix-mobile)
@navid-kalaei Alternativly to the Webhosting for 9,90€/Month we can use a Root Server (Cloud) for 4,15 € https://www.hetzner.com/de/cloud @flosse would install NixOS there, but if you @navid-kalaei have a different suggestions, please share it. Maybe you also know, how we could use a server without SSH access? Then we could use a Level 1 Webhosting for 1,90 €https://www.hetzner.com/de/webhosting and we would not have to maintain the server.
thank you very much @wellemut for your research. there are some points that needs to get cleared.
logs when trying to export static HTML files:
warn - rewrites, redirects, and headers are not applied when exporting your application, detected (redirects). See more info here: https://nextjs.org/docs/messages/export-no-custom-routes
info - Copying "static build" directory
info - No "exportPathMap" found in "/home/max/WebstormProjects/kartevonmorgenssr/next.config.js". Generating map from "./pages"
Error: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment
at /home/max/WebstormProjects/kartevonmorgenssr/node_modules/next/dist/export/index.js:247:19
at async Span.traceAsyncFn (kartevonmorgenssr/node_modules/next/dist/trace/trace.js:74:20)
@alex0107 Offers to do our hosting of backend and frontend on a Server he has ordered from Hetzner.
@navid-kalaei Could you please make sure, that all Server-Dependencies are correctly and fully described here: https://github.com/kartevonmorgen/kartevonmorgen.ts#test-platform (Including OS, Node.js ...)
@flosse Can you please describe all Server-Requirements here https://github.com/kartevonmorgen/openfairdb/#build
Alex will provide Debian on his server and will give you test access. Do you think this could work?
@navid-kalaei is it possible to start the new frontend with node.js instead of pm2 or can we create and use a Docker-Image?
@alex0107 Offers to do our hosting of backend and frontend on a Server he has ordered from Hetzner.
@navid-kalaei Could you please make sure, that all Server-Dependencies are correctly and fully described here: https://github.com/kartevonmorgen/kartevonmorgen.ts#test-platform (Including OS, Node.js ...)
@flosse Can you please describe all Server-Requirements here https://github.com/kartevonmorgen/openfairdb/#build
Alex will provide Debian on his server and will give you test access. Do you think this could work?
the described requirements are the configuration for the current server and is performing very well for the testing purposes. for the production my estimation is it's also enough for production. at some point we may need to upgrade the computation power but in my eyes we are far from that time
@navid-kalaei is it possible to start the new frontend with node.js instead of pm2 or can we create and use a Docker-Image?
pm2
is just a process manager that watches for lifetime of the process, for example when the process stops unexpectedly or runs out of memory pm2
restarts the process. so the answer is yes. we can run the project with node
, however we should somehow be able to monitor the lifetime and the runtime and collect its logs.
Docker is very recommended however I have some questions:
server-side renders at runtime (uses getInitialProps or getServerSideProps)
. my guess is it's related to SWC
as it's happening since I've updated Next version from 10 to 12. how we can terminate the build script when it reaches the end of the procedure?
- the build script halts at its last stage with the message of
server-side renders at runtime (uses getInitialProps or getServerSideProps)
. my guess is it's related toSWC
as it's happening since I've updated Next version from 10 to 12. how we can terminate the build script when it reaches the end of the procedure?
I've tested with the linux command timeout but that doesn't work as expected...and I think that isn't a really good bugfix ;)
- who will be responsible to manage the docker file and containers?
Maybe I? If there will be a new release, I can quickly upgrade the container or maybe we can use continuous deployment?
TL;DR: next-translate detects page props wrong. vinissimus/next-translate#486 Solution: downgrade to next-translate 1.0.1
we use next-translate for the localization.
rm -rf node_modules
yarn cache clean
yarn install
yarn build:dev
my latest hypothesis was related to upgrading Next from 10 to 12. which happened to be wrong because Next 12 benefits from SWC instead of Babel and it was a major change
downgraded next-translate
from 1.0.6
to 1.0.1
.
disabled all pages and components until nothing left but next.config.js
and then I started to disable plugins one after another
After testing I found out the source-code is only compatible with Debian buster and Node 16 (Node 17 and / or bullseye not working)
@alex0107 there's a possibility of duplication at issue #70 . where are you going to discuss further? should we consider the build process closed and continue the server management here?
@navid-kalaei sorry, I opened the issue before you have answered in this issue. Let's continue here.
Three Problems
@alex0107 did you already manage to deploy the frontend somewhere?
Three Problems
- Process of compiling did not complete, because of the package "next translate"
- The Linux-Distribution of Alex was not working. Now, with Debian it is working
- The Node Version 17 is not working, only 16 LTS (LongTermService Release)
just to mention the problems are already solved
@alex0107 please send me your server IP, so I can set DNS entry for a test-URL to your server. Most important for now is our new frontend. We can manage the backend later.
The new server now (new.kartevonmorgen.org) runs on Hetzner and is Managed by @alex0107
Markus Could you grant Access for @navid_kalaei to our server via SSH with rights to install dependencies, (Yarn) be able to execute applications (pn2), Continous integration and continous deplyment? Please for two domains https://test.kartevonmorgen.org/ (internal testing) https://beta.kartevonmorgen.org/ (testing with clients)