hledger/.sandstorm/build.sh

26 lines
1023 B
Bash
Raw Normal View History

2015-08-03 23:19:32 +03:00
#!/bin/bash
set -euo pipefail
# This script is run in the VM each time you run `vagrant-spk dev`. This is
# the ideal place to invoke anything which is normally part of your app's build
# process - transforming the code in your repository into the collection of files
# which can actually run the service in production
#
# Some examples:
#
# * For a C/C++ application, calling
# ./configure && make && make install
# * For a Python application, creating a virtualenv and installing
# app-specific package dependencies:
# virtualenv /opt/app/env
# /opt/app/env/bin/pip install -r /opt/app/requirements.txt
# * Building static assets from .less or .sass, or bundle and minify JS
# * Collecting various build artifacts or assets into a deployment-ready
# directory structure
# By default, this script does nothing. You'll have to modify it as
# appropriate for your application.
2018-05-26 05:14:36 +03:00
cd /opt/app
2016-11-15 23:57:29 +03:00
stack setup
stack install hledger-web
sudo cp /home/vagrant/.local/bin/hledger-web /usr/local/bin