Skip to content

A simple utility to deploy your Interact apps to Heroku.

License

Notifications You must be signed in to change notification settings

abhishalya/InteractDeploy.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This is a simple utility to deploy your Interact.jl apps to Heroku.

Usage

Pre-requisites

You need to have heroku-cli installed before using this script. You can follow the instructions here to install it. Also, after you've installed heroku-cli make sure you are logged in. You can simply run heroku login in order to do that.

You also need to have git installed. You can follow the instructions here to install git.

Apart from these, I expect you should already have Julia installed and has been added to the $PATH variable.

Instructions

  • The script accepts at most two arguments with the first one being the name of the directory and the other being the name of the app. Ideally, you should provide both of the arguments since the default app name may not be available.

  • To manage the dependencies of your project, you'll need a Project.toml file and a Manifest.toml file. The script creates a default for both of the files, but you're expected to create them yourselves since your app might have other dependencies as well.

To create a new Project.toml for you app, do follow the below steps below in the root directory of the app:

julia> using Pkg;

julia> Pkg.activate(".")

julia> Pkg.add("foo")

julia> Pkg.add("bar")

This will create both of the files in that directory with the packages foo and bar as your dependencies. You should add all of your packages this way.

  • Finally, assuming your app directory name is test-dir and the app name you want to set is my-new-app, simply run:
julia script.jl path/to/test-dir my-new-app

That's it. This will do most of the work and will deploy your app on heroku. You can watch the log to see if everything went fine.

About

A simple utility to deploy your Interact apps to Heroku.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages