Skip to content

Commit

Permalink
Chore: install only production NPM dependencies on EC2 (ToolJet#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
Navaneeth-pk authored Jun 26, 2021
1 parent cf2673d commit f69fd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/ec2/setup_app
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def build_fe
backend_url = "#{ENV.fetch("TOOLJET_HOST")}/_backend_"
front_end_working_dir = "/home/ubuntu/app/frontend"
Dir.chdir front_end_working_dir
system("npm install")
system("npm install --only=production")
system("NODE_ENV=production TOOLJET_SERVER_URL=#{backend_url} npm run-script build")
end

Expand Down

0 comments on commit f69fd65

Please sign in to comment.