hapistrano/example/README.md
2021-05-11 17:31:11 -05:00

1.1 KiB

Example project to test hapistrano's working_dir feature

We're going to test the hapistrano's working_dir feature by deploying this project to a local server (Virtual machine). To do this we need to:

  1. Install VirtualBox
  2. Install Vagrant
  3. You must have a ssh key with the name id_rsa. If you're not sure this article can be helfpul.
  4. Go to the /hapistano/example directory.
  5. Execute in your terminal the next line.
    #This could take a couple of minutes
    $ vagrant up
    $ hap deploy
    
    If everything went good, this should trigger the deployment procces to the virtual machine.
  6. To check that the project was built you can ssh the vagrant vm, and do the folowing:
    vagrant ssh
    cd /tmp/hap-examle/current/example
    stack build
    
    Nothing should happen since your project is already compiled.