Commit graph

25 commits

Author SHA1 Message Date
Mac Siri
1084179579
Update Gitpod's setup (#20026) 2023-09-07 16:36:56 -04:00
Takuya N
47ac512f1d
Command update for gp cli in gitpod.yml (#18208)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-08-09 11:36:07 -06:00
Takuya N
2b1f92f322
Remove DISABLE_STRING variables after PR#16848 (#17367)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-04-20 14:42:11 -06:00
Daniel Uber
7b5d90d252
Add DISABLE_SPRING environment variable to gitpod forem server task (#15807)
https://www.gitpod.io/docs/environment-variables#terminal-specific-environment-variables

Without this I'm seeing the ENV["APP_DOMAIN"] not set when spring is
loaded (this prevents browsing the site from within gitpod).
2021-12-16 15:24:22 -06:00
Daniel Uber
7c540abc8d
Gitpod: wait for postgresql to be listening before startup (#15429)
* Wait for postgresql to be listening on port before setup and startup

 https://github.com/forem/forem/issues/15428 points out an issue where
 the command sequence runs (foreman starts the Procfile.dev)
 but rails exits early because the database is not up.

Await the db port before proceeding.

* Await database in gitpod before starting up

* Move await-port to before: action

see https://www.gitpod.io/docs/config-start-tasks - init is only run
as needed (prebuild, new workspace) once, before is run every time a
workspace starts or restarts.

* When in doubt, sleep
2021-11-19 11:35:46 -06:00
Nick Taylor
009665ce2a
Gitpod improvements for initial load and persisting gems in container (#14764) 2021-09-21 10:32:22 -04:00
Nick Taylor
cedef989f1
Added gitpod-init script (#14698) 2021-09-10 11:35:52 -04:00
Nick Taylor
41b3171dd1
Now the script will launch the gitpod specific Forem url once the web server is ready. (#14697) 2021-09-10 08:33:41 -05:00
Daniel Uber
c3bfdc585d
Install foreman for procfile and setup appdomain in gitpod (#14612)
* Install foreman for procfile and setup appdomain for csrf in gitpod

Foreman was not installed (so bin/startup would fail fast).

Additionally, the APP_DOMAIN can be fetched from the `gp` utility to
get the url for port 3000

Since the .env file is read top down - it's easier to implement
appending the corrected value than to replace it at the beginning, but
I'm completely open to redoing this via a sed command or similar to
change the variable at the top (this would be less confusing for
anyone else dealing with the file).

* Ensure command executes as a series of commands

TODO: if this works move the echo commands into the setup section

* move .env setup commands to init section
2021-08-27 18:21:07 -05:00
Alex
393ba00221
Remove Elasticsearch ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ (#13606)
* Attempt number 1

* Fix rack_attack specs

* Fix users_searches_users spec

* Fix display_users_search_spec

* Fix comment typo

* Remove search:destroy task from cypress

* Remove port 9300 from gitpod

* Stub response in attack_spec
2021-05-03 11:09:45 -04:00
Vaidehi Joshi
1531c182cc
Move .env_sample out of /config directory (#9868)
The `.env` file shouldn't live in the `/config` directory when it is created, but
currently, the `.env_sample` file lives within `/config`. This can be confusing and
cause ENV var issues if someone duplicates `.env_sample` and renames it to `.env`,
because none of their ENV variables will get picked up, since their `.env` file will
mistakenly end up in `/config`.

This change moves `.env_sample` out of `/config`, and updates the documentation/relevant
.yml files accordingly.
2020-08-19 18:18:30 +02:00
Molly Struve
0a64ac067b
[deploy] Remove ENVied Gem, Use dotenv Take 2 (#9767) 2020-08-14 12:20:47 -05:00
rhymes
e727956640
Revert "[deploy] Refactor:Remove ENVied Gem, Use dotenv Instead for Test and Development (#9621)" (#9757)
This reverts commit 1be8c72206.
2020-08-12 13:28:38 -04:00
Molly Struve
1be8c72206
[deploy] Refactor:Remove ENVied Gem, Use dotenv Instead for Test and Development (#9621)
* Refactor:Remove ENVied Gem in Favor of Default application.yml

* Copy sample_application.yml for Travis

* Create .env_sample file, Warn of missing ENV variables, ignore .env file

* Use dotenv For ENV variables and create Rake Task to Populate

* Update docs to copy .env_sample file

* make application config a bit more resilient

* update more documentation and only initialize dotenv in dev and test

* Update doc code snippet types and refactor rake task and app config

* remove push defaults

* Make initializers more resilient, remove unused ENV from travis

* Exit new rake task if application.yml does not exist, include dotenv in docs
2020-08-12 11:01:38 -04:00
Cornelius A. Ludmann
603a8b4d7a
Prepare Gitpod setup for prebuilds (#9560)
This commit improves the Gitpod setup. It now allows you to benefit from prebuilds.

Also, Gitpod now waits until the server is ready before opening a preview window.
2020-07-29 10:03:05 -04:00
Molly Struve
4c779be2ed
[deploy] Remove ALL Algolia Code (#7577) 2020-04-29 10:11:57 -05:00
Michael Kohl
741420893a
Add Solargraph gem for Gitpod (#7171) 2020-04-09 15:54:56 +02:00
Michael Kohl
1d069d8ed1
Unset DATABASE_URL in .gitpod.yml (#7059)
* Unset DATABASE_URL in .gitpod.yml

* Only run bin/setup once

* Try alternative approach for unsetting DATABASE_URL

* Update bin/setup

* Consistently use db_url

* Fix bug caused by typo (= instead of ==)
2020-04-03 15:56:43 +02:00
Michael Kohl
54a9aee61a
Add Elasticsearch to GitPod (#6198) [deploy]
* Add Elasticsearch to GitPod

* Add second ES port
2020-02-20 07:37:33 -06:00
Lucas Hiago
c09c65d7bf Fix missing redis server to gitpod configuration (#5528) 2020-01-15 15:12:18 -05:00
derekenos
0690479bb9 Fix Algolia creds documentation URL (#2766) [ci skip] 2019-05-08 10:46:18 -04:00
Mac Siri
4b5622f47b
Config Gitpod's prebuilds [ci skip] 2019-04-25 08:35:38 -04:00
Mac Siri
05b7208871
Update .gitpod.yml [ci skip] 2019-04-25 08:11:27 -04:00
Jan Keromnes
a4484021e8 Ensure Gitpod init always succeeds (#2379) 2019-04-11 12:31:50 -04:00
Jan Keromnes
6bc248e43b Automated DEV setup using Gitpod (#2321) 2019-04-07 17:08:30 -04:00