I would like to deploy Meteor App to IIS or IIS Node in Windows.
Could you please help me?
I think that the only way to do that(not tested) is to build it meteor build . and then deploy it as a nodejs app http://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx but probably you will have a "ton" of problems with nodejs dependencies.
Related
I have an application laravel as backend and vuejs as frontend separately. The problem is I don't know how to deploy this app to the server separately using apache server. I need help please provide me a detail instructions on how to do it. I have successfully deploy the laravel application api but I'm having trouble with the vuejs frontend also I'm using one ip address for this two application.
Thanks for your help.
Donnie.
It is very simple to deploy Vue SPA on the apache server.
Run this command in your project for production build
npm run prod
OR
yarn build
This command will create a dist folder in your Vue project.
project/dist/spa
spa folder contains index.html and other files (images,css and compiled js filed)
Give path of this index.html in your apache environment.
/etc/apache2/sites-available/your_project.conf
In ubuntu look like this.
eg /var/www/dist/spa
In ubuntu how we make the symbolic link
ln -s /your_project/dist /var/www/dist
I'm having problems with deploying and running the ReactRedux template on an IIS server which doesn't has nodejs. The app was created using AspNetCore.SpaTemplates' "reactredux" option:
https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/
The app is the same as the template, no changes were made. We first tried to host it on IIS with nodejs installed on the IIS server, everything works fine:
screenshot with nodejs
But when we uninstalled nodejs from the server and restarted IIS, it wasn't working anymore:
screenshot without nodejs
We couldn't figure out what the error is because running it in development mode requires nodejs and when we run it with dotnet run in development mode the error message complains about node.js not being installed, as expected.
We tried to deploy the app running:
$Env:ASPNETCORE_ENVIRONMENT = "Production"
dotnet publish -c Release
and using Visual Studios build>publish interface.
Acording to the docs here, the app shouldn't need nodejs when its deployed for production:
https://learn.microsoft.com/en-us/aspnet/core/spa/react?tabs=visual-studio
Unlike the development build, the production build doesn't require
Node.js to be installed on the server.
I'm new to asp.net and deploying apps on IIS, maybe the solution is trivial but we couldn't manage to solve this, thanks in advance.
If you don't want any nodejs dependency, make sure you disabled server-side prerendering:
https://github.com/aspnet/JavaScriptServices/issues/932
If you're not doing server-side prerendering, then you will not need
Node.js on your production server, because all the JS will be executed
on the client side.
If you are doing server-side prerendering (which is the default in the
React-Redux template in this repo), then you do need Node.js on your
production server, because the prerendering process involves executing
your JavaScript code on the server.
To disable server-side prerendering do the following:
Remove asp-prerender-module="ClientApp/dist/main-server" from Views>Home>Index.cshtml
Remove #addtaghelper "*, Microsoft.AspNetCore.SpaServices" from Views/_ViewImports.cshtml
I have problem with my application, which is normally working locally, but when I deploy it on Heroku, then it crashes.
My repo: https://github.com/gkucmierz/cors-proxy
If you search for:
node.js deploy to heroku
You will find that there are certain restrictions to uploading a node.js on heroku.
You should include an application.yml file.
You should include a procfile.
You should modify any interactions with databases to work with postgresql.
I hope I could help.
I have upgraded 2 meteor apps to 0.9.3. Now, when attempting to deploy the apps to meteor.com the app is appearing to not deploy and hang. For example, here is what is displayed:
$ meteor deploy myapp.meteor.com
$ [blinking cursor here]
Note that the myapp is substituted with my actual app name. Any ideas?
Here's a workaround I found:
Downgrade to 0.9.1
Deploy
Login with your developer account when it asks
Upgrade again to 0.9.3
Deploy
I think Meteor was failing to show the login prompt for whatever reason.
Here is what I did to solve the issue.
Deleted the local directories with the meteor apps.
Pulled fresh copies of the apps from my github repos.
Opened the apps via the terminal and was able to publish.
I am sure that there was something deeper that was the issue, but this solved it.
I had the same issue but it was solved when i loged into my meteor account using $ meteor login
I've deployed an application with:
meteor deploy a-meteor-app.meteor.com.
Is there a way for me to undeploy from meteor.com?
Suppose I have deployed an app on the url :- http://anotherajax.meteor.com/ .
Then, to remove this deployed app, Run this Command:-
meteor deploy --delete anotherajax.meteor.com
From the Documentation:
To delete an application you've deployed, specify the --delete option along with the site.