mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 13:43:41 +08:00
e50676caff
This has a basic config to use the new Codespaces feature in GitHub. If you have access to the feature all you need to do is: 1. Visit https://github.com/discourse/discourse 2. Click on Code > Open with Codespaces > New codespace 3. Wait it to prepare the environment 4. Click on File > Run > Run without Debug or press <kbd>CTRL</kbd>+<kbd>F5</kbd> 5. When prompted click on the green pop-up on the lower left to open the running Discourse app in a new tab
20 lines
822 B
JSON
20 lines
822 B
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Discourse",
|
|
"type": "Ruby",
|
|
"request": "launch",
|
|
"cwd": "/home/discourse/workspace/discourse",
|
|
// run bundle install before rails server
|
|
"preLaunchTask": "Prepare discourse",
|
|
"env": { "DISCOURSE_DEV_HOSTS": "${env:CLOUDENV_ENVIRONMENT_ID}-9292.apps.codespaces.githubusercontent.com", "UNICORN_BIND_ALL": "1", "UNICORN_WORKERS": "4", "DISCOURSE_DEV_ALLOW_ANON_TO_IMPERSONATE": "1" },
|
|
"program": "bin/unicorn",
|
|
"args": ["-x"],
|
|
}
|
|
]
|
|
}
|