Giter Site home page Giter Site logo

captum-backend's Introduction

Development environment setup

Requirements

  • Docker

Instructions

  1. Copy docker/.env.dist contents to docker/.env.dist
  2. Configure environment variables (SYMFONY_APP_PATH, MYSQL_PORT, NGINX_PORT etc) at docker/.env.dist
  3. Enable MySQL configuration if necessary by uncommenting database section at docker/docker-compose.yml
  4. make build
  5. make start
  6. make composer-install
  7. Configure database connection at application/app/config/parameters.yml. Default dev parameters under docker would look like:
    database_host: db
    database_port: 3306
    database_name: captum-dev
    database_user: user
    database_password: password
  1. Load fixtures (dev data) to database by running:
    • make fixtures-load-package
    • make fixtures-load-example
    • make fixtures-load-admin
    • make fixtures-load-test
    • make fixtures-load-product
  2. That's it. Access it via http://localhost:{NGINX_PORT}

Server requirements

  • PHP 7.1+
    • Optional (Composer)[https://getcomposer.org/]
    • Required extensions may be identified by running composer check-platform-reqs
  • Nginx or Apache with configuration for Symfony
  • MySQL 5.7
  • Supervisor (config at docker/php7-fpm/supervisord.conf)

Deployment to stage server

Stage server is configured under hostname ec2-3-81-69-200.compute-1.amazonaws.com

In order to be able deploy into the server you must:

  • Connected to the VPN
  • Have private key located under .mage/keys/staging.pem
  • Configured development environment via docker

Deployment via docker mage-deploy-staging. Configuration is located at application/.mage.yml

You can SSH into the server using ssh -i .mage/keys/staging.pem [email protected]

captum-backend's People

Contributors

amandamil avatar lambospeed avatar

Stargazers

Fabian Golle 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.