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

Set up Virtual Development Environment with Vagrant #214

Open
2 tasks
DBNess opened this issue Mar 5, 2014 · 10 comments
Open
2 tasks

Set up Virtual Development Environment with Vagrant #214

DBNess opened this issue Mar 5, 2014 · 10 comments
Assignees

Comments

@DBNess
Copy link
Member

DBNess commented Mar 5, 2014

Ask
Set up automated CodeMontage environment using Vagrant & include setup instructions in README.

To Do

  • Set up CodeMontage environment in Vagrant
  • Add Vagrant setup instructions to README

Additional Info
Related to #254 & #277.

@jake-bladt
Copy link
Contributor

I'd like to take a look at this one. I'm already kicking around virtualization solutions for Ruby at home.

@DBNess
Copy link
Member Author

DBNess commented Mar 5, 2014

@jake-bladt awesome! I'm hoping we can get a template as close to Heroku as possible, but if not a general Ubuntu + Postgres setup should do the trick. I've got Vagrant and VirtualBox set up already so should be able to test this in a timely manner if you get the chance to try something out

@DBNess DBNess assigned acrogenesis and jake-bladt and unassigned acrogenesis Mar 5, 2014
@steverob
Copy link
Member

steverob commented Mar 6, 2014

This is a great idea! 👍

@jake-bladt
Copy link
Contributor

@DBNess
Copy link
Member Author

DBNess commented Mar 13, 2014

Sweet! thanks, @jake-bladt (also in case this view helps anyone else: https://github.com/jake-bladt/codemontage/compare/support_vagrant)

@jake-bladt
Copy link
Contributor

I have this nearly working now, but bundle install is failing on the VM because of psych - something similar to this issue reported on the actual cedar stack: localeapp/localeapp#27. Will investigate that next.

@jake-bladt
Copy link
Contributor

I was able to fix the lack of libyaml-dev by manually installing it on the vagrant VM manually after vagrant up. I'm working on a fork of vagrant-heroku, but somehow my changes still didn't get the properly library installed.

This workaround did solve the problem of being unable to build psych on the VM. Now I've got a new problem. When I run rails and navigate to the site in my browser, I get the following:

Errno::ETXTBSY in Home#index

Showing /vagrant/app/views/layouts/application.html.erb where line #25 raised:

Text file busy - (/vagrant/tmp/cache/sass/9505375e72afa48c5767235c7d79f01d960d4322/application.scssc20140315-1005-uenw2e, /vagrant/tmp/cache/sass/9505375e72afa48c5767235c7d79f01d960d4322/application.scssc)
(in /vagrant/app/assets/stylesheets/application.scss)
Extracted source (around line #25):

22: <title><%= content_for?(:title) ? yield(:title) : "CodeMontage" %></title>
23:
24:
25: <%= stylesheet_link_tag "application" %>
26:
27:
28: <%= javascript_include_tag "vendor/custom.modernizr" %>

I'm trying to address this by running rake assets:precompile before starting the rails server and will report back when I have more information.

@jake-bladt
Copy link
Contributor

@DBNess
Copy link
Member Author

DBNess commented Sep 17, 2014

I've been working on this repeatedly, in pieces, for months, but keep running into issues either on the Vagrant box itself or when I deploy the branch to Heroku -- now hoping to use Codio instead and minimize all of the changes (hopefully!) with #254.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants