How can i update a deployed app using meteor.
So i deploy my app using
meteor deploy xxxxxxx
and to delete i do
meteor deploy --delete xxxxxx
how can i update?
It is not in the command line help also
when i type
meteor deploy --help
I get
Options:
--delete, -D permanently delete this deployment
--debug deploy in debug mode (don't minify, etc)
--settings set optional data for Meteor.settings
--star a star (tarball) to deploy instead of the current Meteor app
Is your app hosted on meteor.com?
If so you only need to issue a
Meteor deploy XXXXX
Command again and it will update your app.
Meteor Deploy uses the same hotcode reload that the apps use.
Just refresh the web page where you're making the changes and the meteor server will make itself restart! :)
Related
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 do have Meteor installed on my Heroku app. Due to some vulnerabilities concern Heroku is asking me to update Node.js version which is possible by updating the Meteor version as directed here
But how would I run the update on my heroku.
Currently I'm using command:
heroku run meteor update --release 1.5.1 -a myappname
I think you need to go to your Meteor project (repo) with your code editor, do the update, make sure everything runs ok on "local". A good opportunity to run "npm outdated" too and see if there is anything to do in that area, then push to production.
I am pretty sure you should not update Meteor via Heroku CLI or command line.
The solution to update Meteor and Node version for Heroku aplication is given below:
Update Node version for Meteor app deployed to Heroku
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
After you deploy a meteor app - let's say foo.meteor.com - can you rename the app URL?
Doesn't look like it, but you could always just delete it and deploy a new one:
meteor deploy --delete YOUR_APP
meteor deploy YOUR_NEW_APP
The Meteor command line doesn't have any command for renaming your deployed application.
But you can just deploy your application with a new name instead of the old one as:
meteor deploy new_app_name.meteor.com
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.