Created
December 15, 2016 16:44
-
-
Save ciavashkh/054de5f9d439de4655141aaa06777cec to your computer and use it in GitHub Desktop.
APIcall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST "https://stage.cloud66.com/api/3/stacks/STACK_UID/service_yaml" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" --data '{"service_yaml":"---\nservices:\n web:\n git: REPOSITORY\n git_branch: master\n command: bundle exec rails server -e _env:RAILS_ENV\n build_command: /bin/sh -c \"RAILS_ENV=_env:RAILS_ENV bundle exec rake db:schema:load\"\n deploy_command: /bin/sh -c \"RAILS_ENV=_env:RAILS_ENV bundle exec rake db:migrate\"\n build_root: \".\"\n ports:\n - container: 3000\n http: 80\n https: 443\n env_vars:\n RAILS_ENV: production\n RACK_ENV: production\n volume:\n - \"/tmp:/log\"\n health:\n type: inbound\n endpoint: \"/\"\n protocol: http\n timeout: 45s\ndatabases:\n- mysql","comments":"test\n"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment