Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I have a really weird problem, I am working on a simple flask/react app, hosted normally on localhost:5000 by flask. Everything was working fine until I closed the terminal application and for some reason the server kept on running, now everytime i go to localhost:5000 the application seems to respond and shows me the react landing page, whether or not i am purposefully running the server. Is there some way to find the source of this or just to turn off all servers? I tried rebooting my laptop but the site seems to stay up, I havent changed any of my start up settings, i have no idea why it would turn on at startup.
It's possible that your browser is caching your React landing page, so the only possible solution I can think of is to clear your cache. There are numerous tutorials for this depending on your browser.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
So I am using VSCode Insiders to connect via SSH to my Ubuntu Server where I have all my project clones. Everything up to here works so far. I am doing a bit of pandas/matplotlib in python and say, I wanted to plot a graph and see it. Is it possible to do this?
In order to view graphical linux applications over SSH, you need to do a couple of things. First of all, you need to make sure that your Ubuntu Server is running an X windows server so the system knows how to process GUI events. Once you've verified this, you need to configure your SSH client to communicate with the X windows server. This will vary based on your host operating system and the SSH client you're using.
This guide could be helpful:
https://statistics.berkeley.edu/computing/x11-forwarding
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have Linux Ubuntu installed and I want to code my Flask app in Linux only.But certain tutorials are coding the web app in a VPS.Why do I need a VPS?Can't I build my web app locally and directly host my site on Heroku?
You can host your application in any form you like.
VPS are an abstraction of a machine, giving you all the resources your application would need often at a fraction of the price required to get a physical server just for you. So it may be a good idea to use a VPS for the development and first phase in the life of your website.
You may also directly choose to deploy your website in one of the many cloud providers. Often they will not charge you until you start hitting a certain amount of resource utilization. So that may also be a cost saver.
You can find some additional info about the benefits of VPS here.
Note I am not associated with the website in any way, I just found it to be quite thorough in talking about VPS.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to deploy my application but did not know which is the best:
Using Heroku or Using a VPS ?
Regards;
Let's assume by VPS you mean AWS.
Heroku runs on AWS.
What Heroku does is it makes your deployment easier for you. You don't have to install dependencies, you don't have to run load balancers, you don't have to do anything more than a
'git push'. This is good if all you want to do is check how your code runs during development.
However when going deploying your code for production, it would be better if you use a VPS service like AWS. It gives you much more control over the environment in which your code runs and will be easier to add tweaks.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am using dreamhost, and just finished a (as far as I can tell) successful installation of DJango on my VPS using Passenger.
Everything was installed from the shell via SSH - and I even launched the server using the command: python manage.py runserver 0.0.0.0:8888
There are 2 issues I am having with this:
Issue 1 (minor)
I have to access my domain at example.com:8888 - though I assume this could be fixed with some URL rewriting - yeah?
Issue 2 (relatively major)
As soon as I kill the terminal (ending my session) my site becomes inaccessible - how do I keep that from happening?
runserver is intended for development, not production. For running production Django applications on Dreamhost, see the Django page on their wiki.
Dreamhost doesn't allow long running processes, they are killed off quite aggressively, you will have to run it on a per connection basis using Passenger WSGI.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am woking on Ubuntu 12, python2.6 and Django1.2.x which is my test server.
And I run a Django project on my test server using below command:
python manage.py runserver 0.0.0.0:8000
The server can work for most time(I let it run on 7X24 for other teammate to access it), but sometime it would suddenly not work:
Browser shows me that "server not available" when I try to access it.
And of course, the test server cannot get any request from my frontend, and no error throws on server side.
All will back to OK once I using my django project and run it again.
now I have 2 question:
Why does this issue happend?
How can I develop a shell script to detect this situation?
Actually, it looks like you're trying to use Django development for production purposes. There may be a lot of explanations, like apparmor config, or limitation of single-threaded server, but the problem doesn't worth investigating. Just install Apache2, or Nginx, or uwsgi, and that's it, you have good and stable server without shell watchdogs and other kludges. It would probably take about the same time as posting to SO