Closed Lunigorn closed 8 years ago
Same here.
Same here
@cleever @gggin are you both also deploying from Windows, Docker, and using a tarball created by slc build
?
@rmg. Yes. First of all, I ran 'slc build', to create a tar.gz file.
(Windows Enviroment to Ubuntu)
Windows Enviroment to Ubuntu same no docker! I'm a beginner I just use GUI(web page)
win -> ubuntu, not docker. Application.tgz built by slc build or arc gui.
Can you also all give the output of slc version
on your workstations?
And the output from sl-pm --version
(or slc version
) on your servers?
The reason is that application.tgz built on Win is not assigned a proper permission and fails to be extracted on Ubuntu. I've found a temporary solution.
First, go to path-to-npm/node_modules/strongloop/node_modules/strong-pack/index.js, add a new option key to the pack() method like:
This key is used when parsing the tar options.
Then go to path-to-npm/node_modules/strongloop/node_modules/tar-fs/index.js, find exports.pack method, and utilize the options we add in step 1 and assign a proper permission, as a linux convention, 744 for folders and 644 for files.
Again this is only a temporary solution for deploying app from win to strong-pm running on Ubuntu.
Great sleuthing, @XiaochenLi1984!
Thanks @rmg and @XiaochenLi1984 !
@Lunigorn @gggin @cleever @XiaochenLi1984 sorry for the auto-close.
I've released strong-pack v1.0.1 which should fix this. It's a nested dependency of strong-build, so the best way to get it will be to run npm install -g strongloop
on your Windows machines.
After that, slc build
should work properly from Windows and allow you to deploy the generated tarballs to strong-pm.
@Lunigorn would you please close if this works for you or comment if it does not?
@rmg Thanks, it works on my Windows.
@rmg Thanks, it works.
@rmg Thanks, so great!
I get app from here, then make docker container like here, then deploy app like here.
then I get error:
How to solve this problem?