Skip to content

Commit

Permalink
Merge pull request #573 from tighten/gc/fix-composer-install
Browse files Browse the repository at this point in the history
Fixes details around running the project locally
  • Loading branch information
mateusjunges authored May 3, 2024
2 parents 62595ae + 281a248 commit d445039
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
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

0 comments on commit d445039

Please sign in to comment.