Code Monkey home page Code Monkey logo

misc-scripts's Introduction

misc-scripts

Miscellaneous scripts

This scripts will help to make your life easy by automating some essential installation and environment setup. This scripts are meant to setup the environment and your supplied django project in an UBUNTU machine.

Django project setup in ubuntu mechine

init_env_setup.sh is a script to initialize and setup the environment needed to run a django project.

To run init_env_setup.sh

./init_env_setup.sh -p [PROJ_GIT_REPO] -u [PROJ_NAME]

It will install nginx, git, pip, gunicorn, virtualenv, Python3.6.4, pyenv

Then clone the project ( you passed as parameter ) , Create a virtual environment for that project. Then install the requirements needed to run your project from requirements.txt inside the virtual environment. Your Project will be inside projects/ directory and virtual environment for your project will inside the venv directory. your virtual environment will be named as venv_your_project_name .

After that a service and nginx configuation for you Application will be generated in the associated directory.

Create AWS server instances with boto3

Install requirements

pip install -r requirements.txt

Config AWS credintials

sudo apt install awscli
aws configure

Config with relevant info

AWS Access Key ID 
AWS Secret Access Key
Default region name // In our case eu-central-1
Default output format json

misc-scripts's People

Contributors

shrek53 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

misc-scripts's Issues

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.