Giter Site home page Giter Site logo

gigalixir-cli's Introduction

GIGALIXIR Command-Line Interface

Installation

pip install gigalixir

If you don't have pip install, see https://pip.pypa.io/en/stable/installing/

Quickstart

gigalixir signup
gigalixir login
gigalixir create 
git push gigalixir
curl https://$APP_NAME.gigalixirapp.com/

Documentation

http://gigalixir.readthedocs.io/en/latest/
https://www.gigalixir.com

Testing

# for python3 
sudo apt-get install -y python3-venv
sudo apt-get install -y python3-pip
python3 -m venv venv3
source venv3/bin/activate
pip3 install -e .[dev]
pip3 install -e .[test]
python setup.py test

# e2e tests
source venv3/bin/activate
unset GIGALIXIR_ENV
pip install pytest
export GIGALIXIR_EMAIL=foo
export GIGALIXIR_PASSWORD=bar
pytest -s e2e/test.py

# hit a development server
# get into the venv (see above)
GIGALIXIR_ENV=dev gigalixir account

Distribute

# may have to upgrade pip and setuptools with
# pip install --upgrade pip
# pip install --upgrade setuptools
python setup.py sdist upload -r pypitest
python setup.py sdist upload -r pypi

Modify documentation

pip install sphinx
pip install sphinx_rtd_theme
cd docs
make html
xdg-open build/html/index.html

# Be sure to update
# 1. Phoenix Guides
# 2. Marketing Emails
# 3. Console & Homepage Links
# 4. Blog Links

Clean up e2e test

# the test cleans itself up unless there was a failure, then it does not clean up
# to clean up failed tests, run
APPS=$(gigalixir apps | jq -r '.[] | select(.replicas > 0) | .unique_name')
for app in $APPS; do gigalixir ps:scale -r 0 -a $app; done

# you may also have to clean up databases, which is not described here.

Credits

Beaker by Eugen Belyakoff from the Noun Project

gigalixir-cli's People

Contributors

anderssorby avatar axelclark avatar bryanjbryce avatar chadfennell avatar chadonihi avatar codyduval avatar cznrhubarb avatar daisychat avatar damonvjanis avatar dfalling avatar dustinfarris avatar fdbeirao avatar fireproofsocks avatar iangreenleaf avatar jeff-hostetler avatar jesseshieh avatar mbirman avatar nikitaavvakumov avatar oleks avatar pangratz avatar pcapel avatar petelacey avatar rhnonose avatar ryan-senn avatar stoneg avatar stratigos avatar vishal-upforcetech avatar x-ji avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.