vagrant

Django Development server doesn't detect changes in my html files

别说谁变了你拦得住时间么 提交于 2019-12-25 09:16:53
问题 I am using django 1.7.5 for my project .I am using vagrant and virtual box for my project.I successfully ran the server and detected changes on my browser.But,the problem is After making any changes in the html file,I had to restart the server to see changes on the browser. Does django 1.7.5 detect changes on the go?(like make change the file,refresh the browser,see changes.) or this is not related to django version? My website is very old. so it uses 1.7.5.How to enable caching in my version

Connect to node js server running on vagrant machine

☆樱花仙子☆ 提交于 2019-12-25 08:22:02
问题 I have a simple node http server running on a vagrant VM. I would like to address to it with my browser on my local machine. varhttp=require("http"); http.createServer(function(request,response){ response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Hello World"); response.end(); }).listen(3000); This is my Vagrantfile: VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/xenial64" config.vm.network "forwarded_port",

dopy.manager.DoError: Unable to authenticate you

喜你入骨 提交于 2019-12-25 07:59:52
问题 I'm trying to configure a Virtual Machine(with Vagrant and Ansible), that needs a file.py to the full correct configuration of this machine (according to the book that I'm studying),I'm was using the DigitalOcean API V2, but as I have no a valid credit card my account is bloked,so I had to change DigitalOcean to AWS,as the company where I work have an account with AWS,now I take the 'client id' and 'api key' from AWS VM,so the foregoing problems returned...when I try use the "python file.py"

How do I get chef cookbooks to be downloaded in Unix format on Windows?

心已入冬 提交于 2019-12-25 06:59:06
问题 I'm using Vagrant, Chef solo and berkshelf to run up a Linux VM on Windows 7 using VirtualBox. Cookbooks are downloaded from git and arrive with windows line endings. One of these is a Perl script, which is then uploaded to the vm and executed. However it fails because the first line is #!/usr/bin/perl and the Linux VM sees this as the command #!/usr/bin/perl^M How can I configure whichever tool needs it (probably Chef?) to download .pl files in Unix format? 回答1: Well, it seems it's too late

Adding new sudo user using ansible - “password”: “NOT_LOGGING_PASSWORD” message

旧巷老猫 提交于 2019-12-25 06:44:50
问题 I'm using Vagrant (Virtual Box provider) to setup a local Virtual Machine. I'm also using ansible and more specific ansible_local (Vagrant plugin) to deploy some tools into the VM. Initially I'm trying to create a new user following the ansible documentation. --- - name: Master Node hosts: 127.0.0.1 connection: local user: root vars_files: - vars/vars.yml vars: username: nikolas tasks: - name: Adding user user: name={{username}} shell=/bin/bash groups=root append=yes password={{pass}} sudo:

How to configure ports on Vagrant and ruby-debug-ide

邮差的信 提交于 2019-12-25 05:19:16
问题 I’m trying to configure debugger for my web application, but I run into trouble with specifying correct ports for it. Vagrantfile: config.vm.network :private_network, ip: "192.168.68.8" config.vm.network :forwarded_port, guest: 80, host: 8080 /etc/hosts (on my host machine) 192.168.68.8 mysite.com I installed these two gems for debugging gem 'ruby-debug-ide', group: [:development,:test] gem 'debase', group: [:development,:test] I read that in order to use ruby-debug-ide on vagrant, I should

Pulling git repo to a vagrant box using ansible

旧时模样 提交于 2019-12-25 04:46:23
问题 Hi all I am trying to pull a repo from my github to a vagrant box via ansible, refering this github issue. I have registered an ssh from my host with the github. And below is the part in the playbook where I'm trying to pull; - name: install git apt: name=git - name: create the ssh public key file copy: src=/home/user/.ssh/id_rsa.pub dest=/root/.ssh/id_rsa.pub mode=0644 - name: create the ssh private key file copy: src=/home/user/.ssh/id_rsa dest=/root/.ssh/id_rsa mode=0600 - name: setup git

vagrant up fails when destroying and associated drives

喜夏-厌秋 提交于 2019-12-25 04:27:08
问题 When I run vagrant up command it give me error while it destroying VM and associated drives. amit@Amit:/var/www/myhomestead/homestead$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Loading metadata for box 'hashicorp/precise32' default: URL: https://vagrantcloud.com/hashicorp/precise32 ==> default:

PyQt5 Could not connect to display

被刻印的时光 ゝ 提交于 2019-12-25 04:17:17
问题 to learn python I decided to make a small GUI that will interact with a web API. So without much thinking I created a virtual machine with Vagrant (ubuntu/trusty64) and installed PyQt5. I made a small script to create a window (here it is) import sys from PyQt5 import QtWidgets app = QtWidgets.QApplication(sys.argv) main_window = QtWidgets.QMainWindow() main_window.show() sys.exit(app.exec_()) When I executed my script I ended up with this error QXcbConnection: Could not connect to display So

rails vagrant windows changes in controller delayed

不问归期 提交于 2019-12-25 04:01:08
问题 I'm running into a very weird problem with Vagrant. I believe it's something that started after I updated to Vagrant 1.6.1. Lets say I'm opening a web page X in controller Y. If I change the view of that page and I click refresh I see the changes immediately. If I change the controller somehow and I click refresh nothing changes . I have to wait for around 40 seconds for the changes to take effect. I'm running: Vagrant 1.6.1 Rails 4.0.1 Thin 1.6.1 Windows 7 Such delays make development very