GithubHelp home page GithubHelp logo

cngthnh / mpt-test-1 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 36.42 MB

License: MIT License

Shell 0.56% Dockerfile 0.09% Makefile 0.02% Python 41.64% JavaScript 45.43% CSS 10.58% HTML 0.21% Procfile 0.01% TypeScript 1.47%

mpt-test-1's Introduction

Introduction ๐Ÿ“–

This README provides an overview for the deployment flow for the project generated from https://github.com/d-lab/mephisto template.

Prerequisites โœ…

Before deploying, you must set the following variables/secrets in your Github Actions environment:

  • DOTNETRC (Heroku .netrc file content with "" wrapped)
  • HEROKU_API_KEY (Heroku API key)
  • MTURK_ACCESS_KEY_ID (Mturk access key)
  • MTURK_SECRET_ACCESS_KEY (Mturk secret key)
  • PRIVATE_KEY (Private key for ssh access)
  • AWS_ACCESS_KEY_ID (Key for uploading data to S3)
  • AWS_SECRET_ACCESS_KEY (Key for uploading data to S3)

You also need to install the following tools:

  • Docker (Desktop)

Notes ๐Ÿ““

Please read the below notes carefully before starting your work:

  • The practical deployment flow: local -> test -> prod

    • branch deployment-test for test/staging env
    • branch deployment-prod for production env
  • Refer to https://mephisto.ai/docs/guides/tutorials/first_task/ for other configuration details

  • Please ensure that you have changed the taskname in hydra_config in test.yml and prod.yml. Note that Heroku app names for each cannot be duplicated and cannot exceed 30 characters ().

  • There are some configs in hydra_config that are very sensitive and related to cost. Please discuss with your manager before changing them.

    • units_per_assignment: number of units per assignment
    • task_reward: reward per unit

How to start ๐Ÿšฉ

  1. Create a new repo from d-lab/mephisto template with deployment branch
  2. Clone the new repo to your local machine
  3. Switch to the deployment branch

How to configure environment variables in github actions

  1. You must be the owner of the repo to configure the environment variables
  2. Go to Settings -> Secrets and variables -> Actions
  3. New repository secret

Local Deployment ๐Ÿ”จ

  1. Start from the deployment branch
  2. cd to app directory
  3. Run make build to freshly build the docker image for the first time
  4. Run make run to start the local server
  5. Run make watch to build and watch the frontend
  6. Start implementing your task in webapp/src

Test Deployment ๐Ÿงช

  1. Once you are happy with your local version.
  2. Make sure to config the hydra_config in test.yml and environment variables in github actions
  3. Create a new branch from your current deployment branch and name it deployment-test
  4. Push your changes to deployment-test branch to remote
  5. View your deployment status in github actions

Production Deployment ๐Ÿš€

  1. Make sure to config the hydra_config in prod.yml and environment variables in github actions
  2. Create a new branch from your current deployment branch and name it deployment-prod
  3. Push your changes to deployment-prod branch to remote
  4. Check github actions log for the deployment status and the production path to access the task

mpt-test-1's People

Contributors

jackurb avatar etesam913 avatar dependabot[bot] avatar pringshia avatar jayhuynh avatar meta-paul avatar salelkafrawy avatar ericmichaelsmith avatar sghmk12 avatar mojtaba-komeili avatar mwillwork avatar bottler avatar jxmsml avatar gzhihongwei avatar cngthnh avatar vaibhavad avatar macota avatar edwardguo61 avatar xksteven avatar thammegowda avatar yash621 avatar preithofer avatar facebook-github-bot avatar arjunan-k avatar benmatselby avatar eltociear avatar jacobkahn avatar chiehminwei avatar meganung avatar moyapchen avatar

Watchers

 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.