I tried rocket, cargo run, access to http://localhost:8000 and looks well.
However, I failed to access to http://192.168.developing.pc:8000 from other PC in LAN.
I tried http://192.168.developing.pc:8000 in developing PC but was not able to access.
At first I thought it is related to firewall but I was confused because it was not able to access from own machine.
How can I do?
I'm completely not familiar with networking so that I'm not sure if only the executable I built is enough or need other service such as nginx or IIS or something.
I'm developing in windows 10 and want to deploy on ubuntu finally. (ubuntu machine is not ready)
Thank you.
export ROCKET_ENV=stage ;cargo run
Related
I am working for a client that does not allow setting up anything on the native Windows workstation.
I am, however, allowed to set up a virtual machine on which I can install anything I want.
So, I've set up a Linux VM and installed the React environment.
However, I would like to be able to use the native Windows tools that are allowed for development, since installing and using them on the VM is painfully slow.
I'm currently modifying the code with a native Windows IDE, then pushing the changes to a Git repository, then pulling the changes down to the Linux VM to see them work. However, for debugging, where changes are added, removed, modified, etc... this is also painfully slow.
I tried to set up a shared folder to work on the code locally and having it update on the Linux VM dynamically, but that doesn't work because "npx create-react-app" does a bunch of things, like set up symlinks, that either don't work on a shared folder or aren't allowed by IT. I'm guessing it's the shared Windows folder that's limiting this. I also tried to set up a Samba share of the Linux folder, but I think this is blocked by IT, because I just can't see it from my Windows machine, and network discovery is turned on.
So, now that you know my pain, what would be the best way to set up a React development environment in this situation? Help...
I almost understands nothing about linux and VM, but here is something you can do.
When creating a react application with create-react-app, when you run npm start, your application will be hosted in localhost:3000.
So to do what you want, you need to set up the enviroment in the VM (e.g. create-react-app) and then configure (this is the part I don't understand how to do) your VM in a way you can access the VM's localhost and the files of your project.
This way you can edit the files of the VM and also see the app changing in the windows browser.
How to share VM's folder with host
How access VM's localhost
I've been working on a web app (front Angular, back Node/Express/Mongo) for a few months now.
I run Angular on localhost:4200 and Node on localhost:3000
Some people in our team are running the backend in a VM that runs on their computers.
So that the app works in both cases we've edited the windows hosts file to make the app point to the correct place (either the VM or the back on the local machine)
127.0.0.1 mysite
Developers using the VM changed 127.0.0.1 with their VM's IP.
Everything worked smoothly.
A few days ago, our company installed bitlocker on every PC and I believe it caused our setup to break for everyone not using the VM (which is not subject to bitlocker)
People working on localhost started receiving from the front app:
OPTIONS http://mysite:3000/auth/login 426 (Upgrade
Required)
The requests are not even hitting the Node server. Looks like they're redirected to a websocket server?
If I change the requests to target localhost:3000 the app works again but we lose the setup for people working on the VM. (thus committing code becomes annoying if we need to change the base url each time)
I could make an environment for each case but it's not clean and I'd like to know why it suddenly broke.
Try changing the port from 3000 to something else.
I just ran into this issue when a coworker tried running an express app we've been building on a Windows machine for the first time, as opposed to an EC2 instance. I've been using a Mac during development.
The issue seemed to be that 0.0.0.0:3000 was already mapped on company Windows machines. If you run netstat -an in a command prompt you may see it in use already.
hello mate this usually happens due to protocol mismatch between the PC and server.TLS 1.0 and 1.1 were permanently deprecated on June 4 2018. I suspect you’re using something that still uses and old version of TLS.
I have an idea to build a web-app. I would like to run this web-app offline on 1 PC. But I would like a DB with it to store data.
So, I would like to make it so, you just boot up the PC (running on Linux), and it just boots the webapp and the server (maybe make it so you can't get out of the browser if that's possible).
So, I was thinking about taking an old PC, install Ubuntu server on it, and then modify it, so it directly boots the browser (going to the web-app) and the server on booting up the PC.
Can this work? Do I need ubuntu Server? Or can I just run a normal Linux Destro with a LAMP on it and let that boot when booting up.
Thanks for the insight!
No need for some special OS. Choose any distro you like, install XAMMP on it and put all the files your web page has inside htdocs folder. XAMPP is all ready to manage databases and FTP. Once set up, go to your browser at 127.0.0.1/route_to_the_htdocs_folder/yourstartpage.html. Hope that works for you!
I'm learning to use the open source version of OpenShift. I have downloaded the linux image and started it on a virtual machine (named VM1) on my PC, which runs Windows 7. On another VM (named VM2) I have installed another linux OS and configured the JBoss IDE to work with OpenShift. Then I have successfully created and hosted an app on my local OpenShift PaaS cloud. Here is where the problem starts:
On VM2 (the one running linux where I developed the app) I have no problem accessing my account webpage on OpenShift, viewing what apps I have created and testing them.
From any other PC on my network I can log in to the OpenShift web console and view my apps by simply entering the IP of VM1 (in my case 192.168.1.107). There I can see the URL to launch my app: http://localtest2-mydomain.openshift.local/ . But when I click on it, I get a message saying that the web page is not available. Again, if I use this link in VM2, it works like a charm.
I tried changing the system32\drivers\etc\hosts file so that and link ending in openshift.local will be sent to the IP address of VM1, but it doesn't work. Can anyone help me?
As far as I know, you can not use wildcards in your hosts file, you would need to specify the entire url in your hosts file for it to find it correctly. Give that a try and see if it helps.
Guys I have build a website and testing it on localhost using LAMP on ubuntu. Now i want to publish this website on my local network. how do I do it.? Please help. Thanks.
Install a webserver somewhere on your local network (this could be the one you have been using for testing if you don't want to have separate development and live environments … although that usually isn't a good idea).
Publish the site to that webserver (in the same way you are doing for your development server).
Give out the URL to the site