Skip to content

Conversation

@jofus101
Copy link

Hi, This is the vagrant setup process I've been working with for crowdhoster. I'm not sure if you'd rather just link to the project, or have a link to the setup and post_provision scripts.

These changes allow you to have the project up and running with a few simple steps and almost no configuration.

  • install vagrant
  • git clone [email protected]:jofus101/Crowdhoster.git
  • navigate to folder and run "vagrant up"
  • "vagrant ssh"
  • Once in vagrant run ". /vagrant/post_provision.sh"

From here you can verify that all the defaults are installed by running

  • "foreman start"
  • go to local browser and navigate to "localhost:5050"
  • you should see the server in the console respond to the get request, and you should get an ArgumentError response.

However, to get the website to work

  • rename ".env.example" to ".env", fill out the necessary keys, and restart the server. (Make sure you're using unix line endings, otherwise you can have weird errors)

I've found this to be useful for my setup process, especially with vagrant. I hope it's helpful, and please let me know if you'd rather have this in another format.

-Joseph

@princeofburma
Copy link

Thanks for adding this. I am stuck on the last step here. How can we get ". /vagrant/post_provision.sh" to run in windows?

Dave

@jofus101
Copy link
Author

You should run ". /vagrant/post_provision.sh" from within the vagrant virtual machine. After you run "vagrant ssh" you should see the command prompt change to a linux style prompt. That's when you can run it.

@princeofburma
Copy link

That's what I thought. So when I do that here is the result:

login as: vagrant
Authenticating with public key "imported-openssh-key"
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)

  • Documentation: https://help.ubuntu.com/
    Welcome to your Vagrant-built virtual machine.
    Last login: Fri Sep 14 06:22:31 2012 from 10.0.2.2
    vagrant@precise32:$ . /vagrant/post_provision.sh
    -bash: /vagrant/post_provision.sh: No such file or directory
    vagrant@precise32:
    $ sh . /vagrant/post_provision.sh
    vagrant@precise32:~$

It does not give an error but nothing seems to result from the input. If I then go on to put in:
"foreman start"
I get:

vagrant@precise32:$ foreman start
foreman: command not found
vagrant@precise32:
$

So it seems I am missing something.

@jofus101
Copy link
Author

It's a little hard to tell where one line ends and the next begins. But it looks like you have added a "-bash" to the end of the ". /vagrant/post_provision.sh". Is that the case? and if so why?

More importantly though, it looks like you have the error "/vagrant/post_provision.sh: No such file or directory". Are you sure you have that file synced up? If you follow these instructions what do you see?

cd /vagrant
ls

and looking through your windows directory, do you see the "post_provision.sh" file?

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.

3 participants