how to deploy nuxt 3 on Plesk or IIS - node.js

how can i deploy nuxt 3 on Plesk or IIs on windows server.
what config needs to do this.
i appreciate anybody to answer me
i had transfer the .output file in httpdoc on my domain and below config on node js application
node js version : 18
Document root : httpdocs
Application Mode : production
Application Root : httpdocs
Application Startup File : entery.js
entery.js:
import('./.output/server/index.mjs')
when i see my domain in browser, result is this "import('./.output/server/index.mjs')"

my problem is solved
I deploy Nuxt3 on Plesk successfully via the below comment on GitHub by the author of Nuxt Poya Parsa
https://github.com/nuxt/framework/issues/9789#issuecomment-1361454980

Related

NodeJS cPanel Hosting

I set up a NodeJS API on cPanel using the NodeJS setup that is provided. the app starts but none of my endpoints are reachable with 404 pages being displayed.
In the cPanel > metrics > errors I can see the error: Path for NodeJS application is invalid: /home/username/repositories/repo
where username is the cpanel username and repo is the server.
I used the built in git support in cPanel to link to a remote repo via SSH. This part is most likely not the problem since I can see the actual server files referenced in the NodeJS server with the correct path (which is why this error message is so strange.)
The server works fine on localhost so this likely has something to do with cPanel.
I have never hosted a node app on cPanel and I know a VPS would be better but this is what I have to work with for now. There isn't a lot of discussions/forums/docs on this online so I am running out of options.
I would highly appreciate it if someone can tell me what is wrong or guide me in the right direction for where to start looking for the problem.
I solved the problem. When you don't use a git repo you can use a relative path from your home to the place the server is stored. i.e. don't include home/username/ in the path
for git repos you must use the absolute path meaning
home/username/repositories/yourserver
where "username" is your cPanel username and "yourserver" is the name of the folder where your server is located

Only seeing Index of/ at domain even though index.js is present in the pubic_html directory

I've been driving myself a little mad trying to deploy this node.js and express app
I'm hosting on bluehost, so therefor, deploying via cpanel -
Currently:
Git repo cloned and deployed head commit success
Node app registered in app manager and Npm dependencies have been successfully ensured.
I after cd'ing into my repository directory in cpanel terminal I ran
/opt/cpanel/ea-nodejs10/bin/node app.js
and it was confirmed that
Server running at http://127.0.0.1:3000
Then after logging into whm root I ran
curl http://127.0.0.1:3000
And am returned with my index.ejs file , which seems like a good sign.
However, when I go to my domain -- deltadesigns.co
All you can see is :
Index of /
Name Last modified Size Description
DeltaDesigns22/ 2021-02-27 06:23 -
cgi-bin/ 2021-02-19 03:00 -
DeltaDesigns22 is the repo with all of required files and folders, public, views, app.js cpanel.yml etc.
I can't figure out why it's not working, feel like I'm so close but am just missing something! All help is appreciated!

Deploying Angular 6 app to linux shared hosting (Apache server)

Not trying to duplicate the existing questions on "Deploying Angular apps"
I am trying to deploy an Angular 6 app to shared hosting on go daddy.
I see a blank page after i upload the files to public folder
I have tried the following troubleshooting steps
1. https://angular.io/guide/deployment#production-servers
2. https://github.com/mgechev/angular-seed/wiki/Deploying-prod-build-to-Apache-2
3. Unable to deploy Angular 5 using dist folder in WAMP server
4. I have tried changing the path on <base href="./">
5. Used the ng build --prod command to create the files in dist folder and uploaded them aas it is to the public www folder then created the .htaccess folder and rewritten rule as per angular docs
Any suggestions or help is greatly appreciated.
Thanks in advance.
Nothing seems to solve the problem.
Has anyone deployed an angular2+ app on godaddy shared linux hosting (apache server) ?
It was an issue with the routing.
I was routing using localhost as route URL.
It had nothing to do with the server setup

Not able to start broad leaf app with tomcat 8.5

I am trying to deploy broad leaf app into tomcat 8.5.
I have created admin.war and deployed into tomcat 8.5 and started tomcat. In catalina.out, i have seen that admin.war deployed.
Logs are in catalina.out
13-Feb-2017 19:39:16.978 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /opt/smusic-aio/apache-tomcat-8.5.8/webapps/admin.war has finished in 304 ms
serviceInfos:[TServiceInfo(serviceName:Catalina/localhost/admin and tomcat server started.
I tried to open admin page with http://localhost:8080/admin/, i got 404 error.
I am able to access http://localhost:8080.
Did i miss anything here? or do i need to change any configuration.
I'd guess that you have both wars deployed to the same application context (/), were as we always deploy to / for the site war and /admin for the admin war.
Checkout this screenshot for an example of how I setup the Admin war in IntelliJ.

Using Webdeploy with Webmatrix (Orchard)

I have setup a VM (VMWEB-3) to test local development of Orchard CMS using Webmatrix and the deploying to web server.
I have installed IIS 7 on VMWEB-3 (Server 2008) and downloaded and installed (Default) WebDeploy2.
I add the settings in WebMatrix:
Server: vmweb-3
User: vmweb\Administrator
password: ***
site name: Test
Url: .http://vmweb-3
I keep getting connection timeout when I validate. I can browse to .http://vmeweb-3 and get the IIS 7 splash etc
Any suggestions would be great.
I finally found something that sorted it out ... I had not done all of the IIS configuration. Here is the article I used to fix the issue:
Webdeploy IIS Configuration

Resources