Vagrant localhost production - wordpress

I have questions about virtual machine using vagrant. I need to install vagrant on a mac, but not for development mode. Just in production. My website runs localy on my mac and every day I need to run vagrant to use my website. It's important to know I won't to make my website online. How can I do that automatically ?
Thanks for answer.

If you need to run the vagrant up, to access your Vagrant Box, it is because your box has been turned off. Unless you are physically turning off your machine, this should not happen.
If you are using a mac you could automate the vagrant box to startup boot of your system using the automator, something like this.
https://www.lifewire.com/automate-opening-applications-and-folders-on-mac-2260908

Related

How to make TwinCat works with docker

I have a Asp.net project need to communicate with PLC by twincat. It works well on Windows. However, to be easier for remote deployment we run into docker. The twincat doesn't work anymore because our host address changed to linux docker container. What's the easiest way to solve this problem or we are also consider to use IIS instead of docker, but version control becomes to a problem.

Meteor Vagrant can curl localhost:3000 but windows cannot open localhost:3000 windows 8.1

Good morning,
Working on installing Meteor on windows using the following guide:https://gist.github.com/gabrielhpugliese/5855677
As pointed out on other posts its a little dated and I needed to install meteor separately, which I used this guide: Unable to install meteorite on Ubuntu VM
Currently, my set up can do the following:
files stay in sync between vagrant and windows
localhost:3000/ is working on the server
What I still need help completing:
when opening localhost:3000/ in my windows browser, I get the "This webpage is not available
I know that the vagrant VM is correctly serving the app because I opened a new instance of vagrant and curled the localhoust:3000/
I am actively working in django and node and can successfully run apps locally on :8000 and :8080, I tested the meteor app on those ports but still couldn't connect. I also created a windows firewall port exception on 3000 but the results didn't change.
I know that there is a windows-preview currently out, but that is not working for me and I have an issue being tracked in gitHub.
Thank you in advance.
One thing that might be worth mentioning is it is somewhat possible to use Meteor on windows.
More details here: https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows.
With your vagrant machine it sounds like there is a problem with port forwarding on your localhost machine to the VM's ports.
One possible simple way to get passed this is to get your Ubuntu machines IP address and simply load it up using http://<ip address>:3000.
I'm not sure why the port forwarding isn't working on your machine. In general the reason is provided when you run vagrant up, if there was an issue.

Where does vagrant (PuPHPet used ) store data when I install meteor?

I've used PuPHPet to set up a development environment and did "vagrant ssh" to get into the machine. After that I installed meteor via curl https://install.meteor.com/ | sh, which worked as expexcted. I thought it would install it to the sync folder I have set up but it doesn't seem to be there. Can I find the file structure of the virtualized machine on my Windows PC?
How does it work? If meteor tells me I can access my meteor app via localhost:3000 how do I access this on my Windows PC?
I'm not so familiar with vagrant and windows, but give this a try.
Login with vagrant ssh
Open terminal and type hostname --ip-address
Paste <yourip> localhost in your hosts file on your windows machine system32\drivers\etc\hosts
Now, all your localhost requests in your browser are send to your vagrant box. I'm not sure if Meteors standard port works with vagrant, so try something like meteor -p 2000 or meteor -p 8080
If you want something like myapp.dev in your browser, you have to use virtual hosts. I'm only familiar with apaches virtual host system, but meteor is using nodejs so i don't know, what would be the best practice here. :/

moving joomla site from windows to linux servers

Would there be a problem if I host my joomla site created in xampp for windows on linux servers? If so, what can be done? Also, is there a way to create linux environment(at least for the sake of running xampp) on windows 7 to create joomla sites which should have no problem running on linux servers?
You could install Linux on Windows PC and to create a multi boot.
My advice is to get some Linux hosting providing money back guarantee, to move your site and if this is not OK to cancel the service and get your money back.
You should not have any problems to move your site because joomla is based on PHP. The problems will be if it was on ASP.NET.
If URL rewriting is enabled, you will need to create a .htaccess file to replace your web.config file.
You will also need to update your tmp and log paths in Global Configuration.
Apart from the above, there will likely be no other issues.
An alternative to dual boot is to use virtualisation software such as VirtualBox so you can run Linux on your Windows PC. This works well as long as you have enough memory available.
VirtualBox is free: https://www.virtualbox.org

How do I setup an ASP.Net/IIS dev enviroment on a Mac for my Flash developer?

No, no, I'm not getting hives ;).
I am able to run a local version of my .NET 3.5 site on IIS and troubleshoot whilst I develop. However, my flash developer is forced to log onto our Windows 2003 and mess with our staging server when he wants to see how his work is doing. This is unacceptable, I understand, but right now there are time concerns so this hack is going to have to fly for a little.
How do I set up a dev environment for my flash developer to be able to work on his local machine? I'm sure this gets done in other places.
VMWare Fusion or Parallels, or give him a virtual machine/PC that he can Remote Desktop to from his Mac.
Not to sound the fool, but isn't Flash not platform dependent? Is the flash developer doing anything more complex than connecting to a remote client to update an .swf file? You don't "need" to be running windows/iis to copy a file from mac to windows. You might try the Remote Desktop client:
http://www.microsoft.com/mac/products/remote-desktop/default.mspx
or set up an FTP account (on the staging server in question?) for him. I agree with the above about using Parallels or VMWare. It's not necessarily a "hack" or "workaround" that you can use and test on multiple platforms. It's a huge plus! As a user of VMWare and ex-parallels user, I recommend VMWare. It takes about as long as "installing windows" to be up and running on a mac, and the resources from your Mac can be available via a "documents" on the desktop (or other) if you so choose.
What kind of Mac is it? The Intel ones can run Windows natively.
Dual boot Windows on his Mac with Boot Camp?
Setup IIS in a VMWare Fusion virtual machine. Do a simplified install of Windows XP and it should run excellent.
That way you can interface with the IIS Server from Mac OS X or from other PC's from anywhere on the local network for that matter.
I use Vmware Fusion to run subversion and Apache servers and it runs beautifully.
well an alternative is the Q Emulator
What is the actual problem? As I see it, Flash dev. makes a Flash movie, and tests it locally, if it needs to communicate with the server, it does just that. If the Flash dev. wants to see it in a page, or see how it communicates with the surrounding HTML and Javascript, he uploads the file to the server using a ordinary windows share (aka Samba-share) or FTP or whathaveyou and then presto, it works.
I've just discovered http://www.virtualbox.org">VirtualBox which is a free alternative to Parallels and Bootcamp. I'm running Windows XP pro on my MacBook no problem at all - note it's for Intel Macs only though.

Resources