Just to better understand. You are editing the files in the resources directly on the live server?
How can I make changes reflect on vite ?
Greetings,
I have a vite project install already on a live server , but whenever I make changes to the code base or I edit a text , changes don’t reflect even when I refresh the browser… so I’m asking if there’s any command to run on my terminal to make changes reflect.
@Sinnbeck yes I’m editing the files in the resources directly on the live server
@Greynix ok. I assume you are fine if the site breaks while you changing stuff. Anyways, when you are done editing, you need to run npm run build on the live server
@Sinnbeck okay I have to run npm run build command on terminal right? What if I’m using local host on my computer? Will I still run the same command?
@Sinnbeck when I tried running the command I got this error
[openedtr@cp112 ~]$ pm run build node: /lib64/libm.so.6: version 'GLIBC 2.27' not found (required by node) node: /lib64/libc.so.6: version 'GLIBC 2.25' not found (required by node) node: /lib64/libc.so.6: version "GLIBC. 2.28' not found (required by node) node: /lib64/libstac++.so.6: version CXXABI 1.3.9' not found (required by node) node: /lib64/libstdc++.so.6: version 'GLIBCXX 3.4.20' not found (required by node) node: /lib64/libstdc++ .so.6: version •GIIBCAX 3.4.21' not found (required by node) [openedtr@cp112 ~]$
@Greynix you need to run it on the server, but you can connect to it using ssh. Are you sure you are running the correct command? Looks like you ran pm run build node
@Sinnbeck yes I ran the right command, the text was copied for a picture I snapped that’s why it’s was showing the correct command I typed…. But how can I connect to it using ssh as you said
@Greynix so you ran npm run build locally on your computer?
What os are you on? Windows?
@Sinnbeck yes I did , using windows 11 I did it for both on the live server using cpanel terminal and I did it locally on my computer using cmd
I got this error below when I run it locally on my computer
C \Users \HP\Downloads\openedtrade›npm run build • build • vite build 'vite' is not recognized as an internal or external command, operable program or batch file. C: \Users \HP\Downloads \openedtrade>
@Greynix ok if you have cpanel terminal, just run it there. Be sure to be in the project root when you do
@Sinnbeck tthis was the error I got when I tried it on cpanel terminal project root [openedtr@cp112 ~]$ npm run build node: /lib64/libm.so.6: version 'GLIBC 2.27' not found (required by node) node: /lib64/libc.so.6: version 'GLIBC 2.25' not found (required by node) node: /lib64/libc.so.6: version "GLIBC. 2.28' not found (required by node) node: /lib64/libstac++.so.6: version CXXABI 1.3.9' not found (required by node) node: /lib64/libstdc++.so.6: version 'GLIBCXX 3.4.20' not found (required by node) node: /lib64/libstdc++ .so.6: version •GIIBCAX 3.4.21' not found (required by node) [openedtr@cp112 ~]$
@Greynix is this a shared server or your own? Can you install things?
@Sinnbeck it’s a shared server from Hostinger but don’t know if I can actually install things … what do I need to install if it’s possible?
@Sinnbeck shared hosting I purchased via Hostinger
@Greynix then I will need to ask them to fix it. It seems they installed an incompatible node version (unless you can change it in cpanel)
@Sinnbeck I can install node on the cpanel but how do I know the compactible node version to install
@Greynix pick node 16.
@Sinnbeck alright let me try it out and see the result , will get back to you once have tried it
Please or to participate in this conversation.