Giter Club home page Giter Club logo

nexinvent's Introduction

Nexinvent

  • We are using a settings folder to seperate environments, therefore to run this in development mode, use:
    • python manage.py runserver --settings=nexinvent.settings.development.
    • It is however reccommended to set the DJANGO_SETTINGS_MODULE envirnoment variable other you need to pass settings to every other command (like migrate)
    • You may need access keys for third party services like Amazon S3, Twilio etc. extend the development.py settings with an untracked file and put the keys there.
  • This project has been configured to be deployed in ElasticBeanStalk, so the production settings should be riddled with EBS environment variable references.
  • additional notes for lazy googlers/ready reference:
    • export DJANGO_SETTINGS_MODULE=nexinvent.settings.development in your terminal
    • To permanently set the env variable - nano ~/.bash_profile and add the above line
    • celery worker can be started by celery -A tasks worker --loglevel=info, but make sure rabbitmq has been started
    • In development : sudo rabbitmq-server

Doing a clean deploy

  • Set up a configured python environment in Elastic beanstalk (not docker)
  • Get a preconfigured public SSH certificate. this can be accessible from any amazon account now. Preferabbly add an entry for *..com
  • Configure a sweet RDS instance so its environment variables are exposed
  • Add a load balancer. use a HTTPS from 443 listener configured to internal instance 80 HTTP.
  • Add Environment variables in software configuration
  • Create a new Code Pipeline from the repository, no build stage required. select the same ELB Application
  • Voila, fresh deployment should be ready
  • Make sure that the security group used by EBS has a corresponding key pair created.
  • ssh -i ec2-user@
  • you can also use eb ssh
  • app location: /opt/python/current/app/
  • you probably want to run python manage.py createsuperuser
  • source /opt/python/run/venv/bin/activate in the instance to get inside the virtual environment
  • source /opt/python/current/env to make environment variables visible in ec2, [https://aws.amazon.com/premiumsupport/knowledge-center/view-environment-properties-elastic-beanstalk/]

nexinvent's People

Contributors

firehawk895 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.