I have several projects that use different versions of Postgres. We're using the asdf plugin to configure them. It's annoying to have to start and stop Postgres each time I move to different project. Is there some way to automate this? I was looking at adding it to our development Procfile, but since the pg_ctl process exits immediately after starting the server, foreman also exits.
Start/stop postgres per project
27 views Asked by lobati At
1
There are 1 answers
Related Questions in POSTGRESQL
- Only the first SQL script gets executed inside Docker Postgres container
- Compare fields in two tables
- Hibernate ClobJdbcType bindings: what are the diferences?
- Postgres && statement Error in Mybatis Mapper?
- Can this query be optimized? (Choosing a random row to insert, that excludes previously inserted Rows)
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- How to copy data from SQLite to postgreSQL?
- PGAdmin4 configured behind a reverse proxy but unable to connect to Postgresql server
- Updates to pgsodium encrypted values don't use specified key_id
- Connecting to Postgres running in a Docker container using psql
- Can't connect to local postgresql server from my docker container
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
- Get list of matching keywords for each post
- docker-compose can't reset postgresql database
Related Questions in FOREMAN
- Specific puppet agent has different group resource to puppet server (and other agents)
- Start/stop postgres per project
- An error occurs when trying to add a printer with the puppet manifest
- I add some code in aplication.css. Why it disappear after restart server by foreman start?
- bin/dev doesn't load puma.rb
- Satellite fails to connect to host after hostname change
- How do you change the colors of the output when running bin/dev with foreman via a Procfile in Rails 7?
- How can I pass foreman host parameters to ansible vars with foreman inventory plugin?
- bin/dev restarting after ctrl+c
- Problem with Foreman --- > engine.rb:201:in `kill': Invalid argument (Errno::EINVAL)
- Pipeline actions deprecated (Node.js 12)
- When sending the configuration to the puppet agent, I get an error
- Puppet ca list error, root cause: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
- Got must be real number, not BadRequest error when I am trying to return http error
- Python Foreman Issue
Related Questions in PROCFILE
- Start/stop postgres per project
- Django app deployment on heroku wsgi module not found
- Procfile for deploying django in Heroku "web: gunicorn [app name]:application -b xx.xxx.xxx.xx:8000"
- Heroku Deployment Fails with "App crashed" and H10 Error in ChainLit Python App
- How to fix a heroku H10/Application error on a ruby on rails application which is crashing?
- Deploying Sylius on Heroku - Routing not correct
- I'm encountering an H14 'No web processes running' error with my Heroku app despite successful build and deploy
- Dynamic Procfile in Elastic Beanstalk
- How can I deploy a dynamic React-app on Heroku?
- Couldn't find that process type (web) - Procfile issue?
- How do you change the colors of the output when running bin/dev with foreman via a Procfile in Rails 7?
- Docker with Redis via Procfile.dev in iTerm2 output is unreadable
- Custom Procfile for Review Apps in Heroku
- How to use gunicorn django and procfile with nested dirs?
- Can't change dyno with Procfile on Heroku
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
My current solution is to add an alias that starts the database before running
foremanand shuts it down afterwards. It's not perfect, since it means I need to boot up the server in order to run the tests: