hapistrano/example
2021-04-22 15:54:54 -05:00
..
app Address comments and suggestions 2021-04-13 18:05:03 -05:00
src Improve vagrant procces 2021-04-16 11:39:36 -05:00
.gitignore Improve vagrant procces 2021-04-16 11:39:36 -05:00
example.cabal Improve vagrant procces 2021-04-16 11:39:36 -05:00
hap.yaml Limit number of cores to 1 2021-04-22 15:54:54 -05:00
README.md Improve vagrant procces 2021-04-16 11:39:36 -05:00
Setup.hs example project 2021-03-29 11:08:09 -05:00
Vagrantfile Improve vagrant procces 2021-04-16 11:39:36 -05:00

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.
    vagrant up
    
    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.