Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Add an option to skip composer install #237

Open
franzwilding opened this issue Dec 7, 2018 · 5 comments
Open

Add an option to skip composer install #237

franzwilding opened this issue Dec 7, 2018 · 5 comments

Comments

@franzwilding
Copy link

It would be great to have an option to skip composer install, for example if you have all dependencies already in your git repo (which can be a good idea).

@dsteinel
Copy link

dsteinel commented Jan 7, 2019

This would be awesome! I am currently running a static site on Netlify and all my PHP stuff on another Server. I do not need to install the php dependencies with composer on Netlify. A possibility to skip would be awesome!

@bcomnes
Copy link
Contributor

bcomnes commented Feb 1, 2019

+1 More control over the install phase would be an improvement.

dz0ny added a commit to dz0ny/build-image that referenced this issue Jul 4, 2019
I believe this is the way to implement the pre-build changes needed by many issues with the current build process. It allows a bit more flexibility for advanced users and does not break things for existing users.

Here are some examples:

## Skipping unnecessary language installs (netlify#141)

One can create `.netlify/remove_languages.sh` with contents:
```bash
rm Pipfile
rm Pipfile.lock
rm requirements.txt
rm runtime.txt
```

## Specify Composer file (netlify#237)

One can create `.netlify/patch_composer.sh` with contents:
```bash
mv -f composer-netlify.json composer.json
```

## Deploying multiple sites from the same repo (netlify#196)

Add enviroment vairable $NETLIFY_SITE to project
Create a `.netlify/netfily-site.sh` with contents:
```bash
mv -f .netlify/$NETLIFY_SITE netlify.yaml
```
@dz0ny dz0ny mentioned this issue Jul 4, 2019
@alfonsobries
Copy link

+1

@nelson6e65
Copy link

Also, an option to customize composer args.

@architchandra
Copy link

Agree with @nelson6e65 here. I'm trying to use the --no-dev argument with Netlify but can't figure out how to set it up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants