
- #Iterm linux install#
- #Iterm linux full#
- #Iterm linux portable#
- #Iterm linux free#
- #Iterm linux mac#
Osascript is a script that is used for executing apple script automatically, so it is exclusively used on Mac. src:/opt/app/src ports: - 4000:4000 self-redis: container_name: self-redis image: redis self-postgres: container_name: self-postgres image: postgres restart: always environment: POSTGRES_USER: better POSTGRES_PASSWORD: self ports: - "5432:5432" volumes: - "./initDB/townPostgres:/docker-entrypoint-initdb.d"Ĥ. dockerfile: Dockerfile command: # command: "tail -f /dev/null" environment: - NODE_ENV=dev # Possible values are stg, prod, dev volumes:. # The postgres will be populated with seed data and both the postgres and the # node server is connected to your system volume version: "2" services: server: container_name: growth_graphql build: context. # Example Yaml, "docker-compose up" on this yaml will start up a node server, # a redis and a posgres database that the node server will connect to. php laravel, python django to some extend) are extremely slow when trying to access containerized databases. But there are also a few cons, for one, Docker and setting up the YAML file imo has a steep learning curve, also personally I found the performance when you do containerize your services are usually slower than running it uncontainerized, especially some web application frameworks (ie. The container themselves are also isolated so you can delete a container and spin one up without affecting your system.
#Iterm linux portable#
The pros of using docker-compose are that Docker/Docker-compose is available on any OS and the YAML files are very portable and reusable.

#Iterm linux full#
I have an example YAML I use but for the full explanation or other usages of docker-compose, it is probably better to read their official documentation. You can instead configure all the services in your YAML, and run docker-compose up to start everything in one go. Docker-compose: Docker is a really good way to start your local environment using YAML, let’s say you have a bunch of services you have to start and some depend on others(you have to start up the database and then run your backend server and then run the frontend).
#Iterm linux install#
The pros of Honcho are that it is very easy to setup(by pip install honcho), and you can configure different files based on your environment(Procfile.production, Procfile.testing, velopment, etc), the con is that all the applications it runs are in one terminal/window, so the logs/message it produces can be very hard to read since everything is printed together.īelow are the example of the Procfile files and the terminal log once you run honcho.Įverything is running under one terminal and differentiated by colors on the left # velopment # Starts the web server, worker and the frontend web: python manage.py runserver worker: python manage.py runworker frontend: yarn watch:frontend # Procfile.production web: ddtrace-run gunicorn gi -log-file - worker. By running honcho -f procfile start, it can call all the commands you’ve listed in the procfile file in one go. Honcho, honcho is a tool for managing Procfile-based applications as the project page says. # Example Alias: alias server='cd ~/project/test_automate/ & python manage.py runserver localhost:8000' alias app='cd ~/project/test_automate/ & yarn watch:frontend' # I can open 2 panels in my terminal, for the first one run "server" # and for the second one run "app".Ģ. You can then set up Aliases that can be run(or triggered automatically) instead of running the full command, multiple commands can be combined together with &or ||.
#Iterm linux mac#
The simplest way to start your environment is via Alias in zshrc or bashrc, zshrc or bashrc is a configuration file that runs whenever you open up the terminal(for Mac and Linux).
#Iterm linux free#
Feel free to leave a comment if there are other ways you use as well.ġ. In this article, I am going to go through 4 ways to make starting your local environment much faster, note the OS I am using for these setups are Ubuntu and Mac. Run something among lines of yarn watch:frontendto start up your react appĮventually, I smartened up and learned to find ways to reduce steps 1- 8 to only 1 or 2 steps instead.Open up a third panel and cdto my frontend folder.

run python manage run worker to start my celery workers.Open up a second panel and cdto my celery worker folder.Run something among lines of python manage runserver 0.0.0.0:8000 to start my main server.In the beginning, the steps I have to do might be similar to this: TL DR: Use bash alias, docker-compose, honcho, or osascript to automate starting your local environmentĪs a Django, React full-stack engineer in my early years, I find one routine I constantly have to do in the morning is starting up my multiple local services(database, backend, frontend, workers, etc). Start your local dev environment the fast way, with examples🏎️
