Sign inSign up

raschidjfr/b4a-deploy

By raschidjfr

Updated over 3 years ago

Deploy a Parse Server application to Back4App.com

Image
0

1.3K

raschidjfr/b4a-deploy repository overview

Bitbucket Pipelines Pipe: b4a-deploy

Deploy a Parse Server application to Back4App

YAML Definition

Add the following snippet to the script section of your bitbucket-pipelines.yml file:

- pipe:  docker://raschidjfr/b4a-deploy:latest
  variables:
    B4A_ACCOUNT_KEY: '<string>'
    B4A_APP_NAME: '<string>'
    CLOUD_PATH: '<string>'  # Don't forget to include package.json inside

    # PUBLIC_PATH: '<string>' # Optional
    # MESSAGE: '<string>' #Optional
    # DEBUG: '1' # Optional

Variables

VariableDescription
B4A_ACCOUNT_KEY (*)Your account key for Back4App. Get one here
B4A_APP_NAME (*)The name of your app as it appears on your Back4App dashboard (currently no whitespace support!). See Create your first App at Back4App
CLOUD_PATH (*)Path to the folder containing main.js and package.json to be deployed
PUBLIC_PATHPath to a folder containing the files to be uploaded to the public folder on Back4App. Files in this folder will be served as a web hosting. See How can I use Back4App webhosting?
MESSAGEOptional message to attach as a description on the release. This will be shown by calling the B4A CLI: b4a releases

(*) Required

Details

This pipeline uses the Back4app CLI to upload Cloud Code to your B4A account.

Please refer to the Back4App's Cloud Code Getting Started guide for details.

Prerequisites

  • You'll need an account on Back4app.com
  • You will need to have at least one app hosted on Back4app

Examples

script:
  - cp package.json build   # don't forget to add package.json!
  - pipe: docker://raschidjfr/b4a-deploy:latest
    variables:
      B4A_ACCOUNT_KEY: $MY_B4A_ACCOUNT_KEY
      B4A_APP_NAME: 'My Cool App'
      CLOUD_PATH: 'build'
      PUBLIC_PATH: 'assets'
      DEBUG: '1'

Support

For reporting bugs or feature requests, please use the repo's Issue Tracker

Tag summary

Content type

Image

Digest

sha256:417ee15dc

Size

6.9 MB

Last updated

over 3 years ago

docker pull raschidjfr/b4a-deploy