public-accountability/littlesis-main

can't get resources to load from localhost

Closed this issue · 1 comments

I gone through the documentation, after running the app all the resources load from http://littlesis.org , how shall I fix it?

html header includes these resources:

<link rel="stylesheet" media="all" href="http://littlesis.org/assets/jquery-ui/theme.self-b25089a1a2b28cdb3b92db39fa9af4da7aa45c5f8c245a6d67a078d7fd04b361.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/jquery-ui/core.self-e4bdefd3813c8a715955a6c65b9e730846dcae6a0576618563d635ff0b18a3ca.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/jquery-ui/autocomplete.self-f0b810a4a7bb8c90994675d7c5bfe636d615a5785cf81cae3340aa5e6adc55ca.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/application.self-71673e8026296282078771ea7a2de7526b2c837bcdb3f36f34d67cca9b0d3d8d.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/bootstrap-select.self-eb7cb078302c3936fe9b72d45d36b5badc8eaab770855704dde6035aed1dd3b3.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/jquery.dataTables.self-68942ce789fa714cafd18a3d4a14f211ebb6ed9e0a2c5311f01964ca6053fe37.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/dataTables.bootstrap4.min.self-2e0ca551c42f6560436fb50ecbc831840747f428ee11188e1963e1ff82e17170.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/jquery.Jcrop.self-30843ecae01798027eb200a989a1e5ad21b42960b9177cb9d12c5b2c2c40433f.css?body=1">
<link rel="stylesheet" media="all" href="http://littlesis.org/assets/main.self-60a84f8fb2e9b3ec2701229b8596bcea67a19f5d51f66b4cf76c4ffa6402f1de.css?body=1">
    <script src="http://littlesis.org/packs/js/application-934e5f5f5a52e7195bb1.js"></script> 
    <script src="http://littlesis.org/assets/polyfill.self-6d4501785d53094a4894a22db9f2ded1e658540a445b53e0dee1547f6ed690cc.js?body=1"></script>
<script src="http://littlesis.org/assets/fetch.self-569412044c38c2bea3e7fe86b0adf72eb004e84abafbf4eadc951b7026a4e976.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery3.self-e200ee796ef24add7054280d843a80de75392557bb4248241e870fac0914c0c1.js?body=1"></script>
<script src="http://littlesis.org/assets/popper.self-70e1b2b78096eb80eb35ebac513e7a8007033ee3e881919cfdca4ece7779cffd.js?body=1"></script>
<script src="http://littlesis.org/assets/bootstrap.self-91405a85c7ea7ffc2407472f08a86cd29ba078b4e18f962931a4cf3270a7ba4d.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/version.self-c8e3d1203da26ea7efdf83c1eabb3f0ba55cb68e463f5ccf0d77bd15ce6a8e61.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/keycode.self-ad63cd20acf49dd333bbbc537454d7d475bd610eb5b88de0dca009f0c3d314b1.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/position.self-1b49c8c521e67a4a88bfdad6b4d944d33686d25009a0e40a1e170acdd7b6962a.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/safe-active-element.self-a1f1a1a7dae3269ce03f6fffb2dcc9b4a7490f5d546c65d54417bec3be24b668.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/unique-id.self-66e85ac85cd0b6b8b1bb89369fc65f608f716869dc0930862a8d421a57a9580a.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/widget.self-fca20bcec06d192f97cffa6e734e24360e227237b8ae7d7e7e60754df7d5444f.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/widgets/menu.self-0730fe713007bd93e6db569352a20ed92448299505ff6f525bc0dc6dd488254e.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery-ui/widgets/autocomplete.self-6a89d7a43741ec810ef95de143a7c0297e2e4368ebecff64493ebb7a9ac3a524.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery.shuffle.self-9ec625b040f666cda1740a3cf37ad7fb5d29985f351abdb4cebcda2eff547f72.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery.tinycarousel.self-8ca72aa53ee5447ba06ed2767608dcd4108484f4a95663db40a25e9f64ed8c9d.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery.dataTables.self-bf58e875900659e3fc954783d1730c50b6da1beebaa397066125f182cf2776cd.js?body=1"></script>
<script src="http://littlesis.org/assets/dataTables.bootstrap4.min.self-81a49c816b4aac8360d6422ba3d3ca96fc259f5407ac8536167ed9bb7018c87a.js?body=1"></script>
<script src="http://littlesis.org/assets/dataTables.editor.self-9ac5411f8c8dbdc7306dcfbed29337596485ba55446005c0414ebd14c10546a9.js?body=1"></script>
<script src="http://littlesis.org/assets/jquery.Jcrop.self-526bdaf2a9dfd42e8fb59b44379ed25b757fac2d30d9b918fe67f3fecee447cb.js?body=1"></script>
<script src="http://littlesis.org/assets/bootstrap-select.min.self-919af099ffafc05371876837edebf99c856cbe576a24f85b164170ddc5e87288.js?body=1"></script>
<script src="http://littlesis.org/assets/typeahead.bundle.min.self-10b2bf0120e9b70a3bf68a4224e17c5b2b5a540b5e0f50c2b7a247f7636820c4.js?body=1"></script>
<script src="http://littlesis.org/assets/hogan-3.0.1.self-4a55d31a62509b998f6ce4bd90733e2bba930057fb32f8e19e4bc29c4fd9a0f9.js?body=1"></script>
<script src="http://littlesis.org/assets/d3.v4.min.self-58c620b0f2f94463a86597e479ff54c8257591dcd62d481e9b8eccfe7275e912.js?body=1"></script>
<script src="http://littlesis.org/assets/papaparse.min.self-880ba364d637d6fca2b1f7add17ebc67fb49e4ebff0f90dd035a8680e37dddc4.js?body=1"></script>
<script src="http://littlesis.org/assets/FileSaver.min.self-7afc0cfd053a001e4e633f30a8ade3d967d0ab1608dcbf9e45fb115617b78347.js?body=1"></script>
<script src="http://littlesis.org/assets/common/api.self-a47e8d1a09e703ae5d27c5b0aff1552a86df818f20c7c53f5c6eb1344172190e.js?body=1"></script>
<script src="http://littlesis.org/assets/common/edits.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1"></script>
<script src="http://littlesis.org/assets/common/home.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1"></script>
<script src="http://littlesis.org/assets/common/more_link.self-f1d2ad5d8d307040e0739fadf6ab83f187c4b7f10d4fd6ed667293e94470d80b.js?body=1"></script>
<script src="http://littlesis.org/assets/common/tags.self-37c7040a184c3634f74cafce9281dbc634e41c301199a91c0bcf2735ec5ff5ae.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/NyMatchDonations.self-9ee6f3f3dace136715803d2ae025862576bae611d4f1508a17804f864c59e83c.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/addRelationship.self-826aa59d3ba30c96cb8369d8675a7b5d6382f1ce18b6db995347c4c4e32fe7e7.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/bulkAdd.self-976c6bbf140e69c3dda3441c67a59b062640cd5f16e89dcd77c1a075ec4b75a4.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/bulkTable.self-1fc450a197100f37ba67c7240c1aa1324ec4ae006e069c5a695c99b33770630c.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/entity.self-54c2b5472543fa51c7a1626a21d8a707d0cb5e140ed206f0961d714202bbe976.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/entityMatcher.self-2334b4e64c4f8a47b7269c9412f320e31fccd2aa3bbea6b2ca16cf3d8dbb3ea6.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/matchDonations.self-433fb13b488b2270ba2b34c465a04cce1a0a3959680de8f8eb5be7ba3a628b8e.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/newReferenceForm.self-caa1247e25aec48e807e6fe8477a08725e056152bcb797ff2d18209193ffbad3.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/political.self-5269f008a85e3782b2766df9e5aee3b0772986f99f72d24295ef4c561551c88e.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/politicalOrg.self-3f2df1de8162d00c97d8d4608f6dacb291418a2468c986cb2d98fe4c07ae9859.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/referenceModal.self-90efce1376953f19578c2d2eafc4cababbd55b88012b63cc0dd9498288304d3d.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/referenceWidget.self-e9ce8e56623b033d949047e5e2ac4aa7a9b1bcf54806b5b3818142a66dbdaf02.js?body=1"></script>
<script src="http://littlesis.org/assets/pages/sidebarSourceLinks.self-51b911ef04694fc80ed1b0ee87e25100852c946fdf773379021f49afa9936173.js?body=1"></script>
<script src="http://littlesis.org/assets/application.self-0db39a5157b4496fdcc3f4e86e20400bdeef365970c7139a716b08d9553dde87.js?body=1"></script>

Hi @aliforever -- are you still having problems with this? Can you make sure you are running the app in development (RAILS_ENV=development)? Additionally, since you posted this, I've done a bunch of changes to our docker and development setup.

In the configuration file lilsis.yml there is a variable asset_host that sets the host for assets. Make sure that it's set to your local server and not littlesis.org. On my development computer I use 127.0.0.1:8080