Coder Social home page Coder Social logo

directlytraining's Introduction

Directly Training Project

Back end deployment to Heroku

Create a Heroku account.

Install Heroku-Cli, follow the instructions to install and create a heroku app for your development there EG

$ heroku create ms-lab-tests

DON'T PUSH TO HEROKU YET

Install your own Databse plugin:

$ heroku addons:create jawsdb:kitefin

Get DB credentials:

$ heroku config:get JAWSDB_URL

It will return somethin like:

mysql://gr6fbtjxjq59el9d:fefkz3p13ufsa759@g8mh6ge01lu2z3n1.cbetxkdyhwsb.us-east-1.rds.amazonaws.com:3306/hm4stiy5qmvd73y6

Where

  • Username: gr6fbtjxjq59el9d
  • Password: fefkz3p13ufsa759
  • Host: g8mh6ge01lu2z3n1.cbetxkdyhwsb.us-east-1.rds.amazonaws.com
  • Port: 3306
  • Database: hm4stiy5qmvd73y6

Use this credentials into your .env.development file.

Get the app url

$ heroku info -s | grep web_url | cut -d= -f2

Change the DEFAULT_BASE_URL constant in webapp/constants.js file to target your app url

export const DEFAULT_BASE_URL = 'https://ms-lab-tests.herokuapp.com/';

Set NODE_ENV to development:

heroku config:set NODE_ENV=development

Work as usual, commit to git as usual, when you are done with your changes enter the following command from the root of the project:

$ git subtree push --prefix server heroku master

With this you will push your branch to Heroku but only the server folder.

For now don't commit this .env.development or constants.js file changes

If you need to work with the current ms-labs-be app request access to

Mariano Ravinale

Emanuel Pereyra

directlytraining's People

Contributors

rootsco avatar emanuelmetal avatar mravinale avatar

Watchers

Diego avatar James Cloos avatar Andres Moschini avatar  avatar  avatar Mariano Jurich avatar Ivan Scoles avatar Marcelo Vazquez avatar Daniel Isaac Geslin 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.