Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new vagrant file #11

Closed
wants to merge 1 commit into from
Closed

new vagrant file #11

wants to merge 1 commit into from

Conversation

razu9861
Copy link
Contributor

No description provided.

@razu9861 razu9861 changed the title vagrant file (connects #10) new vagrant file Aug 23, 2017
Copy link
Member

@paulbert paulbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some specific problems with this, but rather than simply posting a different file could you post a review with some feedback on the Pull Request that fixes the same issue? Then if it is helpful you can post the alternative PR.

@@ -35,7 +35,7 @@ Vagrant.configure(2) do |config|
# config.vm.network "forwarded_port", guest: 80, host: 8082
config.vm.network "forwarded_port", guest: 5984, host: 5984, auto_correct: true
config.vm.network "forwarded_port", guest: 5986, host: 5986, auto_correct: true
config.vm.network "forwarded_port", guest: 9000, host: 9000, auto_correct: true
config.vm.network "forwarded_port", guest: 3000, host: 3000, auto_correct: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The master branch still serves the app on port 4200, so you will not be able to access the app on the host machine with this port forwarding.

cd add-cors-to-couchdb
npm install
npm install -g @angular/cli
git clone https://github.com/ole-vi/planet.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the next four lines are cloning and installing the repository a second time and unnecessary.

# Run binding on each startup make sure the mount is available on VM restart
config.vm.provision "shell", run: "always", inline: <<-SHELL
docker start planet
# mount --bind /vagrant_node_modules /vagrant/node_modules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line commented out? This is used to reestablish node_modules folder binding on startup.

cd planet
echo "install"
npm install
node bin.js http:https://localhost:5984
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is now thrown off because it is for the adding CORS to CouchDB portion and you are in the incorrect directory.

@dogi dogi closed this Aug 23, 2017
@dogi dogi deleted the 10-newVagrant branch September 20, 2017 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants