Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes details around running the project locally #573

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/Console/Commands/GenerateSeedsFromDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ public function __construct()
{
parent::__construct();

if (app()->environment() === 'local') {
dispatch(new CreateTunnel);
}

$this->dirPath = config('seeder.directory', 'database/json');
}

public function handle(): int
{
if (app()->environment() === 'local') {
dispatch(new CreateTunnel);
}

$methods = collect([
'Modules' => 'syncModules',
'Resources' => 'syncResources',
Expand Down
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Onramp aims to be a collection of resources presented in a way that makes it pos

> [Vite](https://vitejs.dev/) requires node `^14.18.0 || >=16.0.0` to run

- Create a [GitHub OAuth Application](https://github.com/settings/developers). If you use Valet to serve your application locally, you can use the following settings:
- Application Name: `Local Onramp`
- Homepage URL: `http://onramp.test`
- Application Description: `Local Version of Onramp`
- Authorization Callback URL: `http://onramp.test/en/login/github/callback`

## How can I help?

Check out the [Contribution Guide](https://github.com/tighten/onramp/blob/main/contributing.md) to learn more about how to contribute.
Expand All @@ -40,7 +46,7 @@ php artisan generate:seeds-from-db --all
Then, to seed your local database run:

```bash
php art migrate:fresh --seed
php artisan migrate:fresh --seed
```

> Warning: Any changes made to your local database will be overridden when seeding your database from the production seeder files.
Expand Down
Loading