Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

run php command in node image

Ming Hann August 2, 2017

Our stack is php laravel and react, we use npm and gulp for build, but internalization and static page depends on laravel

I tried below pipelines's config

image: node:6.9.5

pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
- gulp-images
- gulp-icons
- gulp
- php artisan js:refresh

 

it failed at this line - php artisan js:refresh. I'm not suprise because it's a node image. Any way I can solve this?

1 answer

0 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 1, 2017

Hi Ming,

You can build your own docker image that has both node and php, or you can use multiple steps and artifacts.

You can find the documentation here.

Hope this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events