My hoster allows to install node-js applications by using cPanel. I tried to install etherpad-lite, but once visiting the URL of the app, the app isn't working, just this notice is thrown out "It works! NodeJS 11.15.0".
Here's a screenshot of the cPanel:
As you can see, there's no package.json file in the directory. Maybe here's the issue? I just cloned the git repo as indicated in the installation guide, which results in the following file structure on my server:
I am aware of this very similar question, but since it was posted in 2015 and still has no suitable answers, I issued a new and more specific question with more information.
I hope someone can point me into the right direction.
Application start up file should be "src/bin/run.sh" (from root folder). This will install all the dependencies and start the server.
Related
Deployment is planned to be done using cPanel. I'm facing a issue in cPanel saying that Error: "can't acquire lock for app". This is error is raised when I run my website Node.js files. I'm able to successfully run a test app.js file but unable to run my website's app.js file. The website is developed using MERN stack.
I ran into this while trying to get my MERN stack deployed. (My app still isn't deployed, God help me, but I know the fix for the lock issue)
The cPanel support staff helped me with this. There's a .lock file that was generated in your /home/username file directory (cPanel File Manager).
.lock has to be deleted.
Mine was located in /home/username/nodevenv/repositories/appname
Check your root directory for a nodevenv directory and follow the breadtrail from there.
Just delete it and that should fix your problem.
i have try to install facturascripts in a windows server, server it´s working fine with many websites in php with laravel, wordpress, .... but when i try to put facturascripts in a domain it doesn´t work, i have translate .htaccess to a web.config file, but still not working.
i think the problem is with routing system, so i execute composer install and npm install to be sure everything is ok, but still nothing. bootstrap css and js files gives error 404, but the route chrome gives me is correct.
someone has facturascript 2020 working in IIS??
Check that the NPM dependencies have actually been downloaded in the node_modules folder. I recently saw a case that npm install failed on a Windows machine.
Here is the FacturaScripts official website with documentation to answer these questions.
I am trying to get my localhost server on Firebase to work but I am continuing to get the following message in the browser 'Cannot GET /'. I took a look in the console and all it says is 'http://localhost:5000/ 404 (Not Found)'.
I have tried re-running the server using 'firebase serve' and that doesn't help.
I ran 'firebase init' again and that didn't help either.
I re-installed the firebase tools by running 'npm install -g firebase-tools' and then running firebase serve again and still nothing.
Not sure whats going on because it was initially working. I installed some grunt plugins and moved my index.html file under an html folder although I still have an index.html file under the public folder it still says 'Cannot GET /'
I have also tried in different browsers restarting them etc.
I am using a Mac OS X El Capitan.
Let me know if you need any more info. Thanks in advance
I had this issue running firebase serve from within the scripts directory in the "Friendly Chat" tutorial. Starting the server from the parent directory got it working again as expected.
if this will help someone save time.. a possibility: it could be that the build step did not complete, this was my case, and the build/... directory had no index.html
I had the same issue when was trying to serve an Angular application with the firebase command.
Firstly, you should see the firebase.json file.
It should contain the "public" value, like:
{
"public":"dist/ProjectName"
...
}
But the dist folder will be auto created only after you build the Angular project:
ng build --prod
After you can do the:
firebase serve
Hope it will be helpful for beginners.
Ok so got this working but pretty much had to start from scratch again. I deleted the public folder and just moved my html, css, js, and node-module folders out of my project directory and then re-installed firebase-tools and ran the 'firebase init' command and then restarted the localhost server and everything started working again. After which point I moved back all my previous folders and things are working as before.
Not a 100% sure how the issue happened but at one point I did delete my index.html file and then put it back in later on as I was testing something. At which point I feel the issue started. I will try to test this scenario in a test project but I guess for the time being don't delete your index.html file just modify the existing one. Thanks all.
The error message shows up if you run 'firebase serve' within the project folder.
Navigate to the parent folder (up one level) using 'cd ..' and start the server from there.
Please check if content of your website is present in folder
"hosting": {
"public": "<folder with your website files>",
from your config "firebase.json"
If you like me, before overthinking the problem, make sure you provided the correct URL to index.html.
In my case, I didn't take into account different structure of my directory. You should provide the path to index.html relative to the root directory of your firebase project. For example, in my case, the correct URL was http://localhost:5000/button-component/public/
I'm new with NodeJS and have worked lately with a project which run in NodeJS. This project is actually going to be put online. The server runs on Amazon and is now running an "old" version of the project.
I've had a very fast manual how to deploy, but I didn't get it.
What I got:
Install cygwin (already did)
tar the project without the .git directory in cygwin
Upload the tar to the server in cygwin
Restart the application
Does anyone know a good tutorial or can someone explain to me how I do best? I know that there is no auto deployment.
I recently setup a nodejs application on AWS, the tools that i used was
nginx server for handling my http request, as starting nodejs in terminal is very problematic.
pm2 for auto restarting nodejs in case if error occur
git for version control, maintained a repo of my code and clone it to my AWS server
SSH for remote login
Hope this helps :)
I'm actually in the same process of deploying a node server via amazon aws. I personally started with watching some Videos to get a clue about AWS EC2, S3 and so on. The following link is a good start for understand some conecpts:
https://www.youtube.com/watch?v=jLVPqoV4YjU
afterwards it is best to read the documentation (better not all of it just the things you need and want to understand).
I also use pm2, git and maybe will use nginx also as reverse proxy ...
Firstly, I have deployed a Laravel project from Windows to server by copying everything in my Laravel folder and upload them to server, after configuring .htaccess, it ran successfully.
And then, I added a new package named "dompdf" by using command line, and it ran successfully in my Windows local. But I don't know how to deploy this package to linux server. I have tried but it failed.
Do I have to install composer on the Linux server?
Do I need to re-install again on the Linux server?
I have asked some people. But they have always said that "you have to install composer on Linux server". But I realize that I do not need to install anything at all. I just uploaded and override file app/config/app.php and some folders in the vendor folder that are new or changed after I added the package "dompdf".
Sorry about my English. If something is wrong, please correct it for me.
You need to install the package using Composer:
1) Require this package in your composer.json:
'barryvdh/laravel-dompdf": "0.4.*'
2) do a composer update from your terminal: php composer.phar update
3) After updating composer, add the ServiceProvider to the providers array in app/config/app.php
'Barryvdh\DomPDF\ServiceProvider',
4) You can optionally use the facade for shorter code. Add this to your facades:
'PDF' => 'Barryvdh\DomPDF\Facade',