#Distelli-Slash
Build and deploy your app entirely from Slack w/ the Slash command: /distelli
.
##Installation:
###Set up in Distelli
- Fork this repository.
- Log into Distelli and create a new Distelli application named DistelliSlash (https://www.distelli.com/username/app/new).
- If you haven't done so already, connect a GitHub account.
- Connect your application to your forked repository.
- Create an environment named DistelliSlash-Prod.
- Update the first line of your distelli-manifest.yml file to use your Distelli username instead of distelli and push the repository.
- Build your application DistelliSlash.
- Add a server and deploy the latest release of DistelliSlash to environment DistelliSlash-Prod.
- Create an apiToken. (https://www.distelli.com/username/settings?section=API)
- Create the following environment variables on environment distellislash-prod:
USERNAME=your-userName
,SLACKTOKEN=your-slacktoken
,SLACKTEAM=your-slackteamid
&APITOKEN=your-apiToken
(https://www.distelli.com/username/envs/distellislash-prod). You can find you team id here: https://api.slack.com/methods/team.info/test. Your nv should look something like this when you're complete:
###Set up in Slack
- Navigate to https://username.slack.com/services/new/slash-commands
- In the choose command textbox, enter /distelli and hit the green Add Slash Command Integration button.
- In the URL textbox, enter the IP you deployed your app to with :3000 at the end to specify port 3000.
It should look something like this when you're done:
##Things you can do:
/distelli List Apps
: List all apps associated with your Distelli account. Use the commandList Apps After [AppName]
to see the next page of results./distelli List Envs
: List all envs associated with your Distelli account. Use the commandList Envs After [EnvName]
to see the next page of results./distelli List Envs for [AppName]
: List all envs associated with a Distelli app./distelli List Builds
: List all builds associated with your Distelli account. Use the commandList Builds After [BuildNum]
to see the next page of results./distelli List Servers
: List all servers associated with your Distelli account. Use the commandList Servers After [ServerName]
to see the next page of results./distelli List Servers for Env [EnvName]
: List all servers associated with an app enviroment./distelli List Releases for App [AppName]
: List all releases associated with an app./distelli Create App [App Name]
: Create a Distelli application./distelli Create Env [Env Name] for app [AppName]
: Create a Distelli environment./distelli Restart Env [Env Name]
: Restart an existing environment./distelli Latest release for app [appName]
: Get information on the latest release associated with an app./distelli Deploy latest to env [envName]
: Deploy the latest release to an environment./distelli Deploy [vXX] to env [envName]
: Deploy a specific releases to an environment.
Shoot me an email (alex at distelli.com) if you need a hand with setup!